然后通过类似下面的语句:
CREATE PLUGGABLE DATABASE catalog12c
ADMIN USER catalogadm IDENTIFIED BY catalogadm
ROLES = (dba)
DEFAULT TABLESPACE catalog_tbs
DATAFILE '/u01/oradata/GDBNAME/catalog12c/catalog_tbs01.dbf' size 1g autoextend on next 100m maxsize unlimited
FILE_NAME_CONVERT = ('/u01/oradata/GDBNAME/pdbseed/',
'/u01/oradata/GDBNAME/catalog12c/')
STORAGE unlimited
PATH_PREFIX = '/u01/oradata/GDBNAME/catalog12c/'
即可以pdb$seed为;模板创建出pdb。
1.找到 tnsname.ora 此文件在oracle安装目录文件夹/(net80/admin)/admin/2.打开该文件并输入如下:(Database数据库名,ipaddress:ip地址,1521是端口),如我的目录是 D:\DevSuiteHome_2\NETWORK\ADMIN ,因为oracle版本不同9i可能是D:\DevSuiteHome_2\net80\ADMIN。
Database =
(description =
(address_LIST =
(address = (protocol = tcp)(host = IPaddress)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = Database_Name)
)
)
3.输入上列文件并且保存后在dos模式下输入
sqlplus username/password@databasename
sqlplus 打开sqlplus工具
username/password@databasenameme
用户名/密码@数据库名
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)