Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

DBA - Connect: Login SQL*PLUS

Back


Login using OS Authentication

user_group

# using OS authentication
sqlplus / as sysdba     # using password file for authentication

# login using database auth and tnsname
sqlplus sys@tns_name as sysdba


sqlplus user_name@tns_name as sysdba

Easy Connect


Lab: Easy Connect with service name

# syntax
CONNECT user_name/password@host_name:1521/service_name

# example
CONNECT sys/pwd@test.com:1521/orcl.com as sysdba    # orcl.com is the service name of root
CONNECT sys/pwd@test.com:1521/orclpdb.com as sysdba    # orclpdb.com is the service name of pluggable database

lab

lab


lab


Lab: Easy connect using TNS name

# syntax
CONNECT user_name/password@tns_name

# Example
CONNECT sys/pwd@orcl AS SYSDBA;

lab02


TOP