1.alter system set service_name = orcl,testpr scope=spfile;
2.修改tnsnames.ora
TESTPR =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.6)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = testpr)
)
)
oracle为服务添加别名
最新推荐文章于 2021-04-15 12:54:57 发布