简体   繁体   English

Oracle Apex 不显示现有架构

[英]Oracle Apex doesn't show existing schema

I have a problem with connecting data from my local oracle user schema (USERS table space) and apex workplace.我在连接来自本地 oracle 用户架构(USERS 表空间)和 apex 工作区的数据时遇到问题。 Could you adivise how I can connect apex workplace with my existing schema?您能否建议我如何将顶点工作场所与我现有的架构连接起来? It looks like APEX uses its own table space and ignores my schemas.看起来 APEX 使用自己的表空间并忽略我的模式。

Here are my screenshots: SQL Developer screen Creating a new workspace screen这是我的屏幕截图: SQL Developer screen创建新的工作区屏幕

Forgot one significat thing to mention: schema Pavel in Apex and schema Pavel in SQL Developer are different.忘记了一件重要的事情:Apex 中的模式 Pavel 和 SQL Developer 中的模式 Pavel 是不同的。 Tables, which are created in the Apex in schema Pavel, are not seen in SQL Developer.在模式 Pavel 中的 Apex 中创建的表在 SQL Developer 中看不到。

No apex user screen没有顶点用户屏幕

apex create workplace and new schema dialog (different table space), the schema is not visible in sql developer apex 创建工作区和新模式对话框(不同的表空间),模式在 sql developer 中不可见

See whether following helps:看看以下是否有帮助:

Connect to the database as SYS and check your Apex users:SYS身份连接到数据库并检查您的 Apex 用户:

SELECT * FROM ALL_USERS WHERE USERNAME LIKE 'APEX%',

Suppose there's APEX_180200 listed (and you use it).假设列出了APEX_180200 (并且您使用了它)。 Then:然后:

ALTER SESSION SET CURRENT_SCHEMA = APEX_180200;  

BEGIN  
    APEX_INSTANCE_ADMIN.UNRESTRICT_SCHEMA(P_SCHEMA => 'ADAM');  
    COMMIT;  
END;  
/  

Now check whether you can assign the ADAM schema to your workspace.现在检查您是否可以将ADAM模式分配给您的工作区。

you will need to add your existing schema to your APEX workspace: check out oracle docs for this: https://docs.oracle.com/database/121/AEAPI/apex_instance.htm#AEAPI253您需要将现有架构添加到 APEX 工作区:查看 oracle 文档: https : //docs.oracle.com/database/121/AEAPI/apex_instance.htm#AEAPI253

 BEGIN
   APEX_INSTANCE_ADMIN.ADD_SCHEMA('MY_WORKSPACE','FRANK');
 END;

The problem was in misunderstanding oracle database architecture.问题在于误解了 oracle 数据库架构。 The APEX data was stored in the pluggable database, while the default connection in SQL Plus was to the root container cdb$root. APEX 数据存储在可插拔数据库中,而 SQL Plus 中的默认连接是到根容器 cdb$root。

alter session set container = XEPDB1;更改会话集容器 = XEPDB1;

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

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