I'm connecting to a new Oracle database with Toad.
If a create a procedure like:
create or replace procedure MyProc...
After I compile it, the name automatically is changed to
SchemaName.MyProc
This doesn't happen in other Oracle databases where I'm doing the same test.
Is that a database configuration?
Thanks!
If you open TOAD settings, you'll find it here:
Editor - Open/save
Object loading
if set to "Always include", you'll see owner name (SCOTT in my example)
if you set it to "Never include", owner name isn't visible any more
Related
I have a problem with connecting data from my local oracle user schema (USERS table space) and apex workplace.
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.
Here are my screenshots:
SQL Developer screen Creating a new workspace screen
Forgot one significat thing to mention: schema Pavel in Apex and schema Pavel in SQL Developer are different. Tables, which are created in the Apex in schema Pavel, are not seen in SQL Developer.
No apex user screen
apex create workplace and new schema dialog (different table space), the schema is not visible in sql developer
See whether following helps:
Connect to the database as SYS and check your Apex users:
SELECT * FROM ALL_USERS WHERE USERNAME LIKE 'APEX%',
Suppose there's APEX_180200 listed (and you use it). 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.
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
BEGIN
APEX_INSTANCE_ADMIN.ADD_SCHEMA('MY_WORKSPACE','FRANK');
END;
The problem was in misunderstanding oracle database architecture.
The APEX data was stored in the pluggable database, while the default connection in SQL Plus was to the root container cdb$root.
alter session set container = XEPDB1;
i have just started to work with oracle and apex, so I don't know my way around yet.
I have installed oracle 18c xe and connected it to the sql developer. Then I have installed apex 19.1 and successfully connected to it via localhost and the admin user.
After that i after that i created a new schema in the database and grant them diferent privileges. Now I wanted to create a new workspace and use this pre-created schema but it is not displayed.
I've tried it a few times, but it doesn't work.
What could be the reason?
So far, i've tried to determine the current Application Express engine schema with SELECT DISTINCT TABLE_OWNER FROM all_synonyms
WHERE SYNONYM_NAME = 'WWV_FLOW' and OWNER = 'PUBLIC' but here i don't get a value. I saw this on the oracle manual https://docs.oracle.com/database/apex-18.1/AEADM/managing-schemas.htm#AEADM232
The following steps on this page do not work either
If you've created the schema and created the workspace (it's not clear if you've done that second part), you probably need to add the schema to the workspace. You can do that with APEX_INSTANCE_ADMIN.ADD_SCHEMA. Or you can log into the INTERNAL workspace in the Apex designer and add it there.
Our Oracle database has 500+ database users ( one for each 'human' user ). We are using TOAD Version 11.5
After every logon, I have to switch to the application schema, which means choosing the schema from a very long "users" dropdown list.
Is there a way to set a default schema upon logon ?
If you just want to pre-select the schema in the Schema Browser, for example, then right-click the Schema Dropdown and choose the "Set XYZ as Default Schema" menu item. If you are referring to some other place in Toad then please be specific.
You can set an Auto Connect connection too. From the session/new connection window, scroll right and check the box for "Auto Connect" on the connection you want. When you start Toad, it will auto-connect to the entry you selected.
I've been starting oracle on my job. But i've been using MS all the time. Now i have problem on User-Shema structure. I tryed a create table with sql query, but table had been created in somewhere else then i wanted. (I've already created a user named LPA) I just wrote the query, and table is in the (GeneralDatabase) Tablespaces->Users->(Here). I want to create a table in LPA schema, under the table folder. I've been searching for it but i could'nt get it. So need some help please.
PS:I found that i need to connect with user, than write to query with TS_LPA(Thats my tablespace). But i also cant connect with the user LPA.(We can say this is my first problem)
In Oracle there is no "dbo" or default schema, in case that is what you are looking for. You must specify the target user account when you connect (log in) to the database, and that account will be used as the default schema for all of your subsequent actions. (This is similar to a home directory in Linux, where if I log in as williamr and create a file, it will belong to williamr and not some generic default account.)
In your case I suspect you are connecting as SYS or similar, in which case your table now belongs to SYS (or whoever you are connected as). You'll need to drop it and try again.
If you don't want to post the connect string you used to connect initially for some reason, then execute the following query to see your current schema:
select user, sys_context('userenv','current_schema') from dual;
(Normally user and sys_context('userenv','current_schema') will be the same, but worth double-checking.)
In PL/SQL Developer you can only issue connect commands from a Command window (not a SQL window). Alternatively you can use the 'log on' menu tool, or Session > Set Main Connection from the menu, or (best if you want to reuse it later) Tools > Define Connections, which has a 'Test...' button to validate a new connection. You'll need the username, password and database service name (not just username and password).
connect with LPA user.
specify the schema name before table name.
create table LPA.tbl_name(col1 datatype1,....);
The report is being designed in Crystal Reports XI.
It uses an ODBC connection to an Oracle database using the CR Oracle ODBC driver 4.1.
I need this report to be easily distributed across 14 sites that use the same ODBC DSN, but the database at each site has a different owner and/or schema name.
I followed Business Objects instructions to modify the fully qualified name for each table in a report:
On the 'Database' menu, click 'Set Datasource Location'. The 'Set Datasource Location' dialog box appears.
In the 'Current Data Source' area, expand the list of current connections in order to view each table in the report.
For each table in the report:
i. Expand the 'Properties' list.
ii. Click 'Overridden Qualified Table Name', and then press the F2 key or double-click.
iii. Move the cursor to the end of the text and type the table name.
iv. Press Enter.
I am getting error
Crystal Reports
Failed to retrieve data from the database.
Details: ORA-00942: table or view does not exist
[Database Vendor Code: 942 ]
I either need a fix for these errors or a better way to make these Oracle reports more portable.