SHAREDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = consdb121-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sharedb)
)
)
SQL> conn system/oracle@SHAREDB
Ú‘±‚³‚ê‚Ü‚µ‚½B
1.Create wallet on client
[oracle@consdb121n1 tmp]$
/u01/app/oracle/product/12.1.0/dbhome1/bin/mkstore -wrl /tmp -create
Oracle Secret Store Tool: ƒo[ƒWƒ‡ƒ“12.1.0.2
Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights
reserved.
password:Oracle123#
re-enter password :Oracle123#
2.Check that the file was created
[oracle@consdb121n1 admin]$ cd /tmp
[oracle@consdb121n1 tmp]$ ls -lrt *wallet*
-rw-rw-rw- 1 oracle oinstall 0 8ŒŽ 6 16:06 2015 ewallet.p12.lck
-rw------- 1 oracle oinstall 75 8ŒŽ 6 16:06 2015 ewallet.p12
-rw-rw-rw- 1 oracle oinstall 0 8ŒŽ 6 16:06 2015 cwallet.sso.lck
-rw------- 1 oracle oinstall 120 8ŒŽ 6 16:06 2015 cwallet.sso
3.
[oracle@consdb121n1 tmp]$ mkstore -wrl /tmp -createCredential
SHAREDB_TMP system
Oracle Secret Store Tool: ƒo[ƒWƒ‡ƒ“12.1.0.2
Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights
reserved.
secret/password is missing
secret/password:oracle
re-enter secret/password:oracle
oracle wallet password:Oracle123#
Create credential oracle.security.client.connect_string1
4.Check that the filesize has increased
[oracle@consdb121n1 tmp]$ ls -lrt *wallet*
-rw-rw-rw- 1 oracle oinstall 0 8ŒŽ 6 16:06 2015 ewallet.p12.lck
-rw-rw-rw- 1 oracle oinstall 0 8ŒŽ 6 16:06 2015 cwallet.sso.lck
-rw------- 1 oracle oinstall 536 8ŒŽ 6 16:10 2015 ewallet.p12
-rw------- 1 oracle oinstall 581 8ŒŽ 6 16:10 2015 cwallet.sso
5.Copy connectivity related files to /tmp on client
[oracle@consdb121n1 tmp]$ cat /tmp/sqlnet.ora
SQLNET.WALLET_OVERRIDE = TRUE
SSL_CLIENT_AUTHENTICATION = FALSE
SSL_VERSION = 0
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = /tmp)
)
)
cp /u01/app/oracle/product/12.1.0/dbhome1/network/admin/tnsnames.ora
/tmp/tnsnames.ora
[oracle@consdb121n1 tmp]$ cat /tmp/tnsnames.ora
# tnsnames.ora Network Configuration File:
/u01/app/oracle/product/12.1.0/dbhome1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
SHAREDB_TMP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = consdb121-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sharedb)
)
)
6.connection
export TNS_ADMIN=/tmp
sqlplus system/oracle@SHAREDB_TMP
7.connection
export TNS_ADMIN=/tmp
sqlplus /@SHAREDB_TMP
SQL*Plus: Release 12.1.0.2.0 Production on –Ø 8ŒŽ 6 16:40:38 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
ÅI³íƒƒOƒCƒ“ŽžŠÔ: –Ø 8ŒŽ 06 2015 16:39:22 +09:00
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit
Production
With the Partitioning, Real Application Clusters, Automatic Storage
Management, OLAP,
Advanced Analytics and Real Application Testing options
‚ÉÚ‘±‚³‚ê‚Ü‚µ‚½B
8. Check if whether commenting-out SSL_CLIENT_AUTHENTICATION and SSL_VERSION is okay
[oracle@consdb121n1 tmp]$ cat /tmp/sqlnet.ora
SQLNET.WALLET_OVERRIDE = TRUE
#SSL_CLIENT_AUTHENTICATION = FALSE
#SSL_VERSION = 0
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = /tmp)
)
)
SQL*Plus: Release 12.1.0.2.0 Production on –Ø 8ŒŽ 6 16:42:29 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
ÅI³íƒƒOƒCƒ“ŽžŠÔ: –Ø 8ŒŽ 06 2015 16:40:38 +09:00
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit
Production
With the Partitioning, Real Application Clusters, Automatic Storage
Management, OLAP,
Advanced Analytics and Real Application Testing options
‚ÉÚ‘±‚³‚ê‚Ü‚µ‚½B
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = consdb121-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sharedb)
)
)
SQL> conn system/oracle@SHAREDB
Ú‘±‚³‚ê‚Ü‚µ‚½B
1.Create wallet on client
[oracle@consdb121n1 tmp]$
/u01/app/oracle/product/12.1.0/dbhome1/bin/mkstore -wrl /tmp -create
Oracle Secret Store Tool: ƒo[ƒWƒ‡ƒ“12.1.0.2
Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights
reserved.
password:Oracle123#
re-enter password :Oracle123#
2.Check that the file was created
[oracle@consdb121n1 admin]$ cd /tmp
[oracle@consdb121n1 tmp]$ ls -lrt *wallet*
-rw-rw-rw- 1 oracle oinstall 0 8ŒŽ 6 16:06 2015 ewallet.p12.lck
-rw------- 1 oracle oinstall 75 8ŒŽ 6 16:06 2015 ewallet.p12
-rw-rw-rw- 1 oracle oinstall 0 8ŒŽ 6 16:06 2015 cwallet.sso.lck
-rw------- 1 oracle oinstall 120 8ŒŽ 6 16:06 2015 cwallet.sso
3.
[oracle@consdb121n1 tmp]$ mkstore -wrl /tmp -createCredential
SHAREDB_TMP system
Oracle Secret Store Tool: ƒo[ƒWƒ‡ƒ“12.1.0.2
Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights
reserved.
secret/password is missing
secret/password:oracle
re-enter secret/password:oracle
oracle wallet password:Oracle123#
Create credential oracle.security.client.connect_string1
4.Check that the filesize has increased
[oracle@consdb121n1 tmp]$ ls -lrt *wallet*
-rw-rw-rw- 1 oracle oinstall 0 8ŒŽ 6 16:06 2015 ewallet.p12.lck
-rw-rw-rw- 1 oracle oinstall 0 8ŒŽ 6 16:06 2015 cwallet.sso.lck
-rw------- 1 oracle oinstall 536 8ŒŽ 6 16:10 2015 ewallet.p12
-rw------- 1 oracle oinstall 581 8ŒŽ 6 16:10 2015 cwallet.sso
5.Copy connectivity related files to /tmp on client
[oracle@consdb121n1 tmp]$ cat /tmp/sqlnet.ora
SQLNET.WALLET_OVERRIDE = TRUE
SSL_CLIENT_AUTHENTICATION = FALSE
SSL_VERSION = 0
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = /tmp)
)
)
cp /u01/app/oracle/product/12.1.0/dbhome1/network/admin/tnsnames.ora
/tmp/tnsnames.ora
[oracle@consdb121n1 tmp]$ cat /tmp/tnsnames.ora
# tnsnames.ora Network Configuration File:
/u01/app/oracle/product/12.1.0/dbhome1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
SHAREDB_TMP =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = consdb121-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = sharedb)
)
)
6.connection
export TNS_ADMIN=/tmp
sqlplus system/oracle@SHAREDB_TMP
7.connection
export TNS_ADMIN=/tmp
sqlplus /@SHAREDB_TMP
SQL*Plus: Release 12.1.0.2.0 Production on –Ø 8ŒŽ 6 16:40:38 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
ÅI³íƒƒOƒCƒ“ŽžŠÔ: –Ø 8ŒŽ 06 2015 16:39:22 +09:00
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit
Production
With the Partitioning, Real Application Clusters, Automatic Storage
Management, OLAP,
Advanced Analytics and Real Application Testing options
‚ÉÚ‘±‚³‚ê‚Ü‚µ‚½B
8. Check if whether commenting-out SSL_CLIENT_AUTHENTICATION and SSL_VERSION is okay
[oracle@consdb121n1 tmp]$ cat /tmp/sqlnet.ora
SQLNET.WALLET_OVERRIDE = TRUE
#SSL_CLIENT_AUTHENTICATION = FALSE
#SSL_VERSION = 0
WALLET_LOCATION =
(SOURCE =
(METHOD = FILE)
(METHOD_DATA =
(DIRECTORY = /tmp)
)
)
SQL*Plus: Release 12.1.0.2.0 Production on –Ø 8ŒŽ 6 16:42:29 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
ÅI³íƒƒOƒCƒ“ŽžŠÔ: –Ø 8ŒŽ 06 2015 16:40:38 +09:00
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit
Production
With the Partitioning, Real Application Clusters, Automatic Storage
Management, OLAP,
Advanced Analytics and Real Application Testing options
‚ÉÚ‘±‚³‚ê‚Ü‚µ‚½B