SQLCL options:
new:
-oci - try looking for 12.1.0.2 oci 'thick' c based library
-optl - turn on logging
-sshkey -sshhost I have not used these could be related to: http://barrymcgillin.blogspot.in/2015/05/sqlcl-cloud-connections-via-secure.html seems related.
From sqlplus
-h -help - show help page
-l -login - do not reprompts for user/password on failure
-R[estrict] 1 -R 2 -R 3 - restrict sqlcl for example R 3 - do not use @
-s[ilent] - suppress console output
-v - version
/nolog - do not log in
-nologin - do not read login.sql
@file.sql - run this file and come back if it does not end in exit
username/password@connectionidentifier as sysdba|sysbackup|sysdg|syskm|sysasm|sysoper - login ([as role] is optional)
-optl shows you logging info:
where it looks for tnsnames.* and what urls it is trying
$ ./sql -optl notauser/notapassword@notanid
SQLcl: Release 4.1.0 Release Candidate on Thu May 07 14:34:11 2015
Copyright (c) 1982, 2015, Oracle. All rights reserved.
May 07, 2015 2:34:11 PM oracle.dbtools.raptor.utils.TNSHelper checkForTns
INFO: Checking for tnsnames.* in :/home/notauser
May 07, 2015 2:34:11 PM oracle.dbtools.raptor.utils.TNSHelper checkForTns
INFO: Checking for tnsnames.* in :/etc
May 07, 2015 2:34:11 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:thin:@notanid"
May 07, 2015 2:34:11 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:thin:@notanid:1521/notanid"
USER = notauser
URL = jdbc:oracle:thin:@notanid
Error Message = IO Error: Unknown host specified
USER = notauser
URL = jdbc:oracle:thin:@notanid:1521/notanid
Error Message = IO Error: Unknown host specified
Warning: You are no longer connected to ORACLE.
now try the thick driver: -oci (throws an error because I have not got the .so library in the path)
./sql -oci -optl notauser/notapassword@notanid
SQLcl: Release 4.1.0 Release Candidate on Thu May 07 14:36:10 2015
Copyright (c) 1982, 2015, Oracle. All rights reserved.
May 07, 2015 2:36:10 PM oracle.dbtools.raptor.utils.TNSHelper checkForTns
INFO: Checking for tnsnames.* in :/home/notauser
May 07, 2015 2:36:10 PM oracle.dbtools.raptor.utils.TNSHelper checkForTns
INFO: Checking for tnsnames.* in :/etc
May 07, 2015 2:36:10 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:oci8:@notanid"
May 07, 2015 2:36:11 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:thin:@notanid"
May 07, 2015 2:36:11 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:thin:@notanid:1521/notanid"
USER = notauser
URL = jdbc:oracle:oci8:@notanid
Error Message = no ocijdbc12 in java.library.path
USER = notauser
URL = jdbc:oracle:thin:@notanid
Error Message = IO Error: Unknown host specified
USER = notauser
URL = jdbc:oracle:thin:@notanid:1521/notanid
Error Message = IO Error: Unknown host specified
Warning: You are no longer connected to ORACLE.
Next post will be about how it attempts to connect.
new:
-oci - try looking for 12.1.0.2 oci 'thick' c based library
-optl - turn on logging
-sshkey -sshhost I have not used these could be related to: http://barrymcgillin.blogspot.in/2015/05/sqlcl-cloud-connections-via-secure.html seems related.
From sqlplus
-h -help - show help page
-l -login - do not reprompts for user/password on failure
-R[estrict] 1 -R 2 -R 3 - restrict sqlcl for example R 3 - do not use @
-s[ilent] - suppress console output
-v - version
/nolog - do not log in
-nologin - do not read login.sql
@file.sql - run this file and come back if it does not end in exit
username/password@connectionidentifier as sysdba|sysbackup|sysdg|syskm|sysasm|sysoper - login ([as role] is optional)
-optl shows you logging info:
where it looks for tnsnames.* and what urls it is trying
$ ./sql -optl notauser/notapassword@notanid
SQLcl: Release 4.1.0 Release Candidate on Thu May 07 14:34:11 2015
Copyright (c) 1982, 2015, Oracle. All rights reserved.
May 07, 2015 2:34:11 PM oracle.dbtools.raptor.utils.TNSHelper checkForTns
INFO: Checking for tnsnames.* in :/home/notauser
May 07, 2015 2:34:11 PM oracle.dbtools.raptor.utils.TNSHelper checkForTns
INFO: Checking for tnsnames.* in :/etc
May 07, 2015 2:34:11 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:thin:@notanid"
May 07, 2015 2:34:11 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:thin:@notanid:1521/notanid"
USER = notauser
URL = jdbc:oracle:thin:@notanid
Error Message = IO Error: Unknown host specified
USER = notauser
URL = jdbc:oracle:thin:@notanid:1521/notanid
Error Message = IO Error: Unknown host specified
Warning: You are no longer connected to ORACLE.
now try the thick driver: -oci (throws an error because I have not got the .so library in the path)
./sql -oci -optl notauser/notapassword@notanid
SQLcl: Release 4.1.0 Release Candidate on Thu May 07 14:36:10 2015
Copyright (c) 1982, 2015, Oracle. All rights reserved.
May 07, 2015 2:36:10 PM oracle.dbtools.raptor.utils.TNSHelper checkForTns
INFO: Checking for tnsnames.* in :/home/notauser
May 07, 2015 2:36:10 PM oracle.dbtools.raptor.utils.TNSHelper checkForTns
INFO: Checking for tnsnames.* in :/etc
May 07, 2015 2:36:10 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:oci8:@notanid"
May 07, 2015 2:36:11 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:thin:@notanid"
May 07, 2015 2:36:11 PM oracle.dbtools.raptor.newscriptrunner.SQLPLUS logConnectionURL
INFO: Attempting to connect using URL= "jdbc:oracle:thin:@notanid:1521/notanid"
USER = notauser
URL = jdbc:oracle:oci8:@notanid
Error Message = no ocijdbc12 in java.library.path
USER = notauser
URL = jdbc:oracle:thin:@notanid
Error Message = IO Error: Unknown host specified
USER = notauser
URL = jdbc:oracle:thin:@notanid:1521/notanid
Error Message = IO Error: Unknown host specified
Warning: You are no longer connected to ORACLE.
Next post will be about how it attempts to connect.
No comments:
Post a Comment