简体   繁体   English

如何从 Oracle 11g 实例访问 Oracle 12c 架构

[英]How to access to Oracle 12c schema from Oracle 11g instance

We have two cloned schemas (from 11g to 12c).我们有两个克隆模式(从 11g 到 12c)。 One was created in 2016 and another was created in 2019. Can anyone please advise on how to connect to cloned schema (12c) from 11g client?一个是在 2016 年创建的,另一个是在 2019 年创建的。谁能告诉我如何从 11g 客户端连接到克隆模式(12c)?

I am able to connect to the schema cloned (12c) in 2016 from 11g client.我能够从 11g 客户端连接到 2016 年克隆的架构 (12c)。 However, I am unable to connect to the schema which was cloned (12c) in 2019.但是,我无法连接到 2019 年克隆 (12c) 的架构。

Anyone's inputs on priority are highly appreciated.任何人对优先级的投入都受到高度赞赏。

This is how I understood the question: in order to connect to any database, we use a connect string, eg这就是我理解问题的方式:为了连接到任何数据库,我们使用连接字符串,例如

connect scott/tiger@orcl

ORCL represents the database. ORCL代表数据库。 Usually, it is an alias we put into TNSNAMES.ORA file and looks like this:通常,它是我们放入TNSNAMES.ORA文件的别名,如下所示:

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = db_server_2)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = ORA11G)
    )
  )

In order to connect to a new database, you'll have to edit that file and add another alias, to that newly created database.为了连接到新数据库,您必须编辑该文件并向该新创建的数据库添加另一个别名。 It will probably have another host name and service name.它可能会有另一个主机名和服务名。 Which ones are they, I don't know.他们是谁,我不知道。 If you know it, fine;如果你知道,很好; if not, ask your DBA.如果没有,请询问您的 DBA。

Suppose it'll look like this:假设它看起来像这样:

ORCL12C_2019 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = db_server_12C)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = ORA12C_2019)
    )
  )

Then you'd connect to it as然后你会连接到它

connect scott/tiger@ORCL12C_2019 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM