ora code
-
ora-21561
-
message: oid generation failed
-
on macos sierra
-
fixed
$ hostname gree2 $ cat /etc/hosts 127.0.0.1 localhost gree2 # these 2 must be match
-
tns test
-
tnsnames.ora
-
file D:\app\Administrator\product\11.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = ORCL) ) )
-
-
listener.ora
-
file D:\app\Administrator\product\12.1.0\dbhome_1\network\admin\listener.ora
# listener.ora Network Configuration File: D:\app\Administrator\product\12.1.0\dbhome_1\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = # (SID_DESC = # (SID_NAME = CLRExtProc) # (ORACLE_HOME = D:\app\Administrator\product\12.1.0\dbhome_1) # (PROGRAM = extproc) # (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\12.1.0\dbhome_1\bin\oraclr12.dll") # ) (SID_DESC = (GLOBAL_DBNAME = ORCL) (ORACLE_HOME = D:\app\Administrator\product\12.1.0\dbhome_1) (SID_NAME = ORCL) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = WIN-UOICH30060A)(PORT = 1521)) ) ) ADR_BASE_LISTENER = D:\app\Administrator\product\12.1.0\dbhome_1\log
-
-
sqlplus
-
test conn
$ sqlplus /nolog > conn scott/tigger as sysdba
-
-
tnsping
-
test conn
$ tnsping orcl
-