Help › Connect to databases

Connect to Oracle Database

Connect to Oracle by service name, SID or connect descriptor, with or without TCPS, and what is particular to Oracle in Querlyn.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

Querlyn speaks Oracle's network protocol itself. You do not install Oracle Client or Instant Client, and Querlyn works with Oracle Database 19c and later.

What you need

  • The listener's host name and port (usually 1521, or 2484 for TCPS).
  • The database's service name, or its SID, or a connect descriptor.
  • A database user and its password.

Fill in the dialog

  1. Choose File › New Connection… and, under Database engine, Oracle Database.

  2. Enter the Host and check the Port.

  3. Under Connect by, choose how you name the database, and enter it:

    Connect byWhat to enter
    Service nameThe service the listener offers for the database, for example FREEPDB1.
    SIDThe instance's system identifier, for databases reached by SID.
    Connect descriptorA descriptor that starts (DESCRIPTION=, or an Easy Connect string such as db.example.com:1521/orclpdb. Its addresses take the place of Host and Port.
  4. Enter the User, and the Password or another place under Where the password is kept.

  5. Choose TLS; see Encrypt with TCPS.

  6. Choose Test Connection, then Save & Connect.

Note: Querlyn does not read tnsnames.ora. An alias from that file is not looked up; paste the descriptor it stands for instead.

Encrypt with TCPS

Oracle has no way to switch a plain connection to an encrypted one, so the TLS choice decides which kind of listener Querlyn talks to:

TLSConnectionPort when you have not typed one
Disable, PreferPlain TCP1521
Require (no verification)TCPS; the certificate is not verified2484
Verify fullTCPS; the certificate and its name are verified2484

For a host that is not your own computer the dialog starts at Verify full. If your listener is a plain one, the test fails at the TLS step with a hint; choose Prefer or Disable, or use the TCPS listener's port.

Oracle's Native Network Encryption is not supported. Querlyn does not connect to a server that requires it and says so; use TCPS there. A server that only offers it connects without it.

Sign-ins that are not supported

Querlyn signs in with a user name and password. It refuses, with the reason:

  • SYSDBA, SYSOPER and other administrative logins, and proxy users
  • Kerberos, RADIUS, operating-system and wallet (external) authentication, and Oracle Cloud IAM tokens
  • accounts whose password is stored only in the old 10g form; reset the password to sign in

What is particular to Oracle

  • Users are listed as schemas. The sidebar shows every user of the database, your own first and Oracle's own last, in the one pluggable database the session is in. Packages and types have folders of their own.
  • DBMS_OUTPUT is always shown. After each statement, the lines it printed are listed under Messages, up to 10,000 per statement.
  • Scripts may use / and some SQL*Plus commands. A PL/SQL block ends at a / on a line of its own. PROMPT prints its text, EXEC runs a procedure, and REMARK and SET lines are skipped. Other SQL*Plus commands (SPOOL, DESCRIBE, @file, HOST, CONNECT) are not SQL and fail with a message that says so.
  • Schema changes commit at once. Every DDL statement commits the open transaction and cannot be rolled back.
  • A failed statement does not fail the transaction. Oracle undoes only that statement, so the tab never shows Transaction failed — roll back.
  • Large values are read whole, up to 64 MiB. A larger CLOB or BLOB fails the statement with a message that names the column; read a part of it with DBMS_LOB.SUBSTR.
  • A DATE holds a time of day, so editing one in the results asks for YYYY-MM-DD HH:MM:SS.
  • Parameters are written :name or :1.
  • Explain Analyze needs a user that may read the performance views (SELECT_CATALOG_ROLE); Querlyn says so before anything runs.
  • Server Activity shows as much as your user may see, and names the privilege that shows more.

Your sessions are visible to the database's administrators with the program name "Querlyn", your computer's name and your user name on this computer, as with any Oracle client.

What Querlyn does not do

  • Backup and restore. Oracle's Data Pump runs on the server and writes its files there. Move data with export and import instead.
  • Lock and statement timeouts, and migration lock warnings.
  • Cloud sign-in.

Help for Querlyn 0.1.0. All help topics