Public schemas on JDE DataBase
Hi to all,
I have an environment with JDEE1 against an Oracle DataBase.
The JDE schemas (DTA, CTL, ...) in Oracle are Publics. Then, any database user can launch a query to those schemas. I would like to revoke these privileges in order to change it to Private schemas. My question is if JDE will work fine after this change.
Does someone know anything about it?
Many thanks in advance!
Víctor.
Hi all,
I have revoked the privileges to private on the schemas and the application continues working fine.
Thanks for your inputs
Víctor.
Similar Messages
-
How to pull in a 'Public Function' from the database.
Hi,
We're using OWB 11.1.0.7.
I'm trying to import a public function into OWB from our database.
When I go to the Global Explorer and right click on 'Functions' all I get are 'New' and 'Add/Remove Experts Here'.
When I select 'Add/Remove Experts Here'. It just gives e an option to select the Public Project object.
When I do, nothing happens.
Selecting 'New' just wants me to create a function from scratch, which is not what I want.
I just want to import a function into the 'Custom Functions' under 'Public Transformations' from my database.
Anybody?Since function in your DB is specific to DB schema you need to import that function in OWB into module that is defined for that schema. After that you can copy/paste that function in Global Explorer custom functions.
-
Comparison of schemas across different database Instances
Hi All,
I need to compare around 8 schemas across 4 different instances. We expect them to be same (atleast constraints and indxes) but we have some exceptions. Don't have any database link. I tried using PL/SQL developer , it gives only changes for source db vs target db. Which is the best tool for this purpose?Here is for remote Schema comparison:
compareRemoteSchemaDDL.sql
This script compares the database tables and columns between
two schemas in separate databases (local schema and a remote
schema).
This script should be run from the schema of the local user.
A database link will need to be created in order to compare
the schemas.
column sid_name new_value local_schema
column this_user new_value local_user
select substr(global_name, 1, (instr(global_name, '.')) - 1) sid_name, user this_user
from global_name;
select db_link from user_db_links;
define remote_schema=&which_db_link
spool &spool_file
set verify off
column len format 999
column cons_column format a20 truncate
column object_name format a30
break on table_name nodup skip 1
set pages 999
set lines 110
prompt ********************************************************************
prompt *
prompt * Comparison of Local Data Base to Remote Data Base
prompt *
prompt * User: &local_user
prompt *
prompt * Local Data Base: &local_schema
prompt * Remote Data Base: &remote_schema
prompt *
prompt ********************************************************************
prompt **** Additional Tables on Local DB &local_schema ****
Select table_name from user_tables
MINUS
Select table_name from user_tables@&remote_schema
order by 1;
prompt **** Additional Tables on Remote DB &remote_schema ****
Select table_name from user_tables@&remote_schema
MINUS
Select table_name from user_tables
order by 1;
prompt **** Additional Columns on Local DB &local_schema ****
Select table_name, column_name from user_tab_columns
MINUS
Select table_name, column_name from user_tab_columns@&remote_schema
order by 1, 2;
prompt **** Additional Columns on Remote DB &remote_schema ****
Select table_name, column_name from user_tab_columns@&remote_schema
MINUS
Select table_name, column_name from user_tab_columns
order by 1, 2;
prompt **** Columns Changed on Local DB &local_schema ****
Select c1.table_name, c1.column_name, c1.data_type, c1.data_length len
from user_tab_columns c1, user_tab_columns@&remote_schema c2
where c1.table_name = c2.table_name and c1.column_name = c2.column_name
and ( c1.data_type <> c2.data_type or c1.data_length <> c2.data_length
or c1.nullable <> c2.nullable
or nvl(c1.data_precision,0) <> nvl(c2.data_precision,0)
or nvl(c1.data_scale,0) <> nvl(c2.data_scale,0) )
order by 1, 2;
prompt **** Additional Indexes on Local DB &local_schema ****
Select decode(substr(INDEX_NAME,1,4), 'SYS_', 'SYS_', INDEX_NAME) INDEX_NAME
from user_indexes
MINUS
Select decode(substr(INDEX_NAME,1,4), 'SYS_', 'SYS_', INDEX_NAME) INDEX_NAME
from user_indexes@&remote_schema
order by 1;
prompt **** Additional Indexes on Remote DB &remote_schema ****
Select decode(substr(INDEX_NAME,1,4), 'SYS_', 'SYS_', INDEX_NAME) INDEX_NAME
from user_indexes@&remote_schema
MINUS
Select decode(substr(INDEX_NAME,1,4), 'SYS_', 'SYS_', INDEX_NAME) INDEX_NAME
from user_indexes;
prompt **** Additional Objects on Local DB &local_schema ****
Select object_name, object_type from user_objects
where object_type in ( 'PACKAGE', 'FUNCTION', 'PROCEDURE', 'VIEW', 'SEQUENCE' )
MINUS
Select object_name, object_type from user_objects@&remote_schema
where object_type in ( 'PACKAGE', 'FUNCTION', 'PROCEDURE', 'VIEW', 'SEQUENCE' )
order by 1, 2;
prompt **** Additional Objects on Remote DB &remote_schema ****
Select object_name, object_type from user_objects@&remote_schema
where object_type in ( 'PACKAGE', 'FUNCTION', 'PROCEDURE', 'VIEW', 'SEQUENCE' )
MINUS
Select object_name, object_type from user_objects
where object_type in ( 'PACKAGE', 'FUNCTION', 'PROCEDURE', 'VIEW', 'SEQUENCE' )
order by 1, 2;
prompt **** Additional Triggers on Local DB &local_schema ****
Select trigger_name, trigger_type, table_name from user_triggers
MINUS
Select trigger_name, trigger_type, table_name from user_triggers@&remote_schema
order by 1;
prompt **** Additional Triggers on Remote DB &remote_schema ****
Select trigger_name, trigger_type, table_name from user_triggers@&remote_schema
MINUS
Select trigger_name, trigger_type, table_name from user_triggers
order by 1;
Prompt **** Additional Constraints on Local DB &local_schema ****
Select TABLE_NAME,
decode ( substr (CONSTRAINT_NAME,1,5), 'SYS_C', 'SYS_C',
CONSTRAINT_NAME ) CONSTRAINT_NAME,
CONSTRAINT_TYPE
from USER_CONSTRAINTS
MINUS
Select TABLE_NAME,
decode ( substr (CONSTRAINT_NAME,1,5), 'SYS_C', 'SYS_C',
CONSTRAINT_NAME ) CONSTRAINT_NAME,
CONSTRAINT_TYPE
from USER_CONSTRAINTS@&remote_schema
order by 1, 2, 3;
Prompt **** Additional Constraints on Remote DB &remote_schema ****
Select TABLE_NAME,
decode ( substr (CONSTRAINT_NAME,1,5), 'SYS_C', 'SYS_C',
CONSTRAINT_NAME ) CONSTRAINT_NAME,
CONSTRAINT_TYPE
from USER_CONSTRAINTS@&remote_schema
MINUS
Select TABLE_NAME,
decode ( substr (CONSTRAINT_NAME,1,5), 'SYS_C', 'SYS_C',
CONSTRAINT_NAME ) CONSTRAINT_NAME,
CONSTRAINT_TYPE
from USER_CONSTRAINTS
order by 1, 2, 3;
Prompt **** Additional Constraints Columns on Local DB &local_schema ****
Select TABLE_NAME,
decode ( substr (CONSTRAINT_NAME,1,5), 'SYS_C', 'SYS_C',
CONSTRAINT_NAME ) CONSTRAINT_NAME,
COLUMN_NAME cons_column
from USER_CONS_COLUMNS
MINUS
Select TABLE_NAME,
decode ( substr (CONSTRAINT_NAME,1,5), 'SYS_C', 'SYS_C',
CONSTRAINT_NAME ) CONSTRAINT_NAME,
COLUMN_NAME cons_column
from USER_CONS_COLUMNS@&remote_schema
order by 1, 2, 3;
Prompt **** Additional Constraints Columns on Remote DB &remote_schema ****
Select TABLE_NAME,
decode ( substr (CONSTRAINT_NAME,1,5), 'SYS_C', 'SYS_C',
CONSTRAINT_NAME ) CONSTRAINT_NAME,
COLUMN_NAME cons_column
from USER_CONS_COLUMNS@&remote_schema
MINUS
Select TABLE_NAME,
decode ( substr (CONSTRAINT_NAME,1,5), 'SYS_C', 'SYS_C',
CONSTRAINT_NAME ) CONSTRAINT_NAME,
COLUMN_NAME cons_column
from USER_CONS_COLUMNS
order by 1, 2, 3;
prompt **** Additional Public Synonyms on Local DB &local_schema ****
Select owner, synonym_name from dba_synonyms
where owner = 'PUBLIC'
and table_owner = UPPER('&local_user')
MINUS
Select owner, synonym_name from dba_synonyms@&remote_schema
where owner = 'PUBLIC'
and table_owner = UPPER('&local_user')
order by 1;
prompt **** Additional Public Synonyms on Remote DB &remote_schema ****
Select owner, synonym_name from dba_synonyms@&remote_schema
where owner = 'PUBLIC'
and table_owner = UPPER('&local_user')
MINUS
Select owner, synonym_name from dba_synonyms
where owner = 'PUBLIC'
and table_owner = UPPER('&local_user')
order by 1;
spool off
Daljit Singh -
Problems with creating SH Schema in exists Database 10.2.0.2
Hello ALL
I have problem with installation SH Demo Schema in exists Oracle Database 10.2.0.2 Enterprise Edition on Windows 2003 EE SP1
First I could try to configure my DB in Oracle Confuguration Assistant but I couldn't to add examles schemas there.
Then I installed Companion 10.2.0.1 with examples schemas in $ORACLE_HOME Database 10.2.0.2 and executed script sh_main.sql under SYS user.
After all SH Schema created in our DB but data exists in only two tables such as COSTS and SALES_TRANSACTIONS_EXT.
I haven't any more data in others tables.
In my log files I see follow :
SQL*Loader-500: Unable to open file (D:\oracle\DB_BI\demo\schema\sales_historydmsal_v3.ctl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
SQL*Loader-500: Unable to open file (D:\oracle\DB_BI\demo\schema\sales_historydem_v3.ctl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
SQL*Loader-500: Unable to open file (D:\oracle\DB_BI\demo\schema\sales_historysale_v3.ctl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: The system cannot find the file specified.
and etc.
Please help me to install SH Schema in exists DB may be anybody resolved this issue.The document you are refering to is OK, but it assumes you already have installed the demo files.
In order for the demo to be installed and working, some requirements must be met.
You must have installed DB10g Enterprise Edition, as demos such as SH require the partitioning option, available only on E.E.
Start a second installation from the companion disk, start your oracle installer, select Database Products, verify the Oracle Home details are the same as those of your Oracle Home, confirm the action and install.
At the end of the installation you must see these directories at the $ORACLE_HOME/demo/schema directory:
bus_intelligence mk_dir.sql.ouibak mkunplug.sql sales_history
human_resources mk_dir.sql.ouibak.1 mkverify.sql shipping
info_exchange mkplug.sql order_entry sted_mkplug.sql.dbl
log mksample.sql product_media
mk_dir.sql mksample.sql.sbs README.txt -
How to view tables in another schema in the database
I am starting to use the SQl Developer 1.5.
We can connect to an oracle database successfully, expanding the tables, it shows the list of tables of one schema.
We have other schema in the database. In the query panel, when we type in the name of the other schema such as tcs. then some table names will popup in the intellisense.
How can we show the list tables in other schema within the same database.In SQL Developer left panel, there's a browse tree. There's a 'Other Users' branch under each database, expand that you will see all the option to check user's objects. Your user need to have check dictionary privilege
-
Not able to connect to APPS schema in 10g database after upgradation
We have upgraded our database from 9.2.0.6 to 10.2.0.1(E-Business suite database).We have upgraded our database using dbua and it was succesful(No invalid objects are there in the databe).Now we are trying to connect using apps username but it is not recognising the username.How do we link the old database schema with new database?
Hi,
Could you please elaborate "You should make sure that all referenced in the context files point to the new ORACLE_HOME and that AutoConfig complete successfully".This is covered in the same upgrade document (See "Step 26. Implement and run AutoConfig" for details).
I think you are referring the context file to xml file which contains parameters like "s_dbdomain". I think mistake lies at this point.Not only this variable, I am referring to any variable which points to the old 9i ORACLE_HOME. But, again this makes no sense if you cannot find the APPS schema in the upgraded database!
Regards,
Hussein -
MDSYS Schema in the Database for spatial data
Hi
As MDSYS Schema is required in the oracle database to hold the spatial data, The client database server has no MDSYS schema installed.
So, when i import the mvdemo.dmp file in the database it is erroring out since there is no spatial data, Please let me know how to get the MDSYS schema in the database.
Thank YouHi thanks for your response, i found this out in the oracle site, DBA ran this script for creation of MDSYS..but there was no data in some of the tables which are needed for development.
--- COMPATIBLE init.ora parameter is set to 9.0.0.0.0 or higher
show parameter compat
NAME TYPE VALUE
compatible string 10.2.0.3.0
If you create an Oracle database using the Database Configuration Assistant (DBCA), Spatial is installed by default and you do not need to perform the installation steps described in this section.
Steps to create the MDSYS schema and objects
1) Connect to the database instance specifying AS SYSDBA.
2) Create the MDSYS user with a command in the following format:
SQL> CREATE USER MDSYS IDENTIFIED BY <password>;
3) Grant the required privileges to the MDSYS user by running the following procedure:
SQL> @ORACLE_HOME/md/admin/mdprivs.sql
4) Connect as MDSYS.
5) Install Spatial by running the following procedure:
SQL> @ORACLE_HOME/md/admin/catmd.sql
SQL> ALTER USER MDSYS ACCOUNT LOCK;
So this solution dint work out....... -
Sqlplus command to display all schema/user in database
Hi,
What sqlplus command can list out all schemas/users in database?
Kenselect username from dba_users;
will give you a list of the schema owners.
Are you looking for more detail than this?
Bob -
Another schema and/or database for a form
Hello.
What if i have a form and I want to change the schema and/or database name for the form? Is that possible? It want to make a form on data from a running production database. But testing is not very nice in a roduction database. So i want to build and test in my own schema and database. Then, when it all works, I want to change it to the running database.
Is that in any way possible with a form from Portal?A form resides in an Application.
You can not change the Schema on which the application is based on.
What you will need to do is:
App1 -- Based on Schema1 -- Your production Build
App2 -- Based on Schema2 -- Your testing build
Form1 -- Resides here (In App2)
You will have to copy "Form1" to App1. In that case it will be transfered in Schema1
One more way will be:
Export the application
Delete the application
While Importing change the application Schema of the Application.
(Don't forget to take the backup of database before you do this as if anything goes wrong while
doing the above then you can always revert back)
Thanx,
Chetan. -
Start schema in relational database vs OLAP
I understand what OLAP and MOLAP are and their purpose in theory. Under what scenarios would one consider switching from start schemas in relational database to OLAP technology and building cubes? I understand this is more frequent in financial departments. Can one expand more about the usage? I understand it improves performance, but you can get pretty good performance by having star schemas in relational databses right?
And to move to OLAP technology, can you elaborate how it would be? Would I still populate the star schemas in relational databases and create cubes from there? Do you use an ETL tool for this?
If I have OLAP technology in our financial department, would I build a data warehouse in the same server?Yes the tables are automatically created and populated at the point of configuration.
Cheers
John
http://john-goodwin.blogspot.com/ -
Where is HR schema in 10g Database?
Dear all!
When I completed installation of Oracle Database 10g successfully, I found that the HR schema did not exist in Database. I tried to find that by logging in Sys schema to check it one again:
SQL> Select username, account_status From dba_users;
However, I did not find HR schema in my Database. Put the original installation CD in CD-ROM, I tried to check if it was not setup, but I could not.
Why do I find it and how do I setup additionally the HR schema?
Thank a lot!Thank you all, especially "burleson". According to your guide web site, I found that some script (hr_cre.sql) need to run to create samples schema. However, this is first time I started with DB 10g but I often used Oracle 9i before, so that, I did not find where are these scripts? Are there in Oracle CD-Rom or in somewhere, not in Oracle\OraHome\Admin\Database?
Thank you very much! -
11g Move Repository Schema to New Database
Hi folks
There is a possibility that I will need to move the 11g repository schema from one database to another. Has anyone performed this and can offer any tips?
Regards
PaulThanks chaps...
At the moment this is still a 'what if' problem for my client. I am gathering as much information as I can before they decide whether to go ahead.
Daan, I can't believe Oracle won't support this - that's crazy. There will be hundreds of customers who will need to perform such a move. I think I will raise a SR to see if they will provide me the manual steps.
Saichand, nice idea. I will look and see what I can find. Glad to hear you like the blog - it's always nice to know people are reading it!
Paul -
VLD-1124: Schema and/or Database link physical configuration parameters
Hi!
The warning message:
VLD-1124: Schema and/or Database link physical configuration parameters should not be set for Table1.
Is it possible to eliminate this warning message ? Anyway , Thanks for your response!
Bye!Hi guys,
I am facing a strange problem. The code generated for my mapping has NOT used the dblinks. My OWB version is 10.1.0.4
This is my problem in brief.
I have installed OWB newly and started to do a sample task. I created a very simple one to one table population mapping from source to the target schema. Both are in the same database.
When i generated the code for the mapping, it gave a warning 'VLD-2771: System privileges may not allow extraction from source EMP'.
When i checked the code which was generated, i couldnot see any dblinks associated with my source table( which seems strange)
CURSOR "INGRP_c" IS
SELECT
"EMP_SRC_TRG_CONN"."EMPNO" "EMPNO",
"EMP_SRC_TRG_CONN"."ENAME" "ENAME",
"EMP_SRC_TRG_CONN"."JOB" "JOB",
"EMP_SRC_TRG_CONN"."MGR" "MGR",
"EMP_SRC_TRG_CONN"."HIREDATE" "HIREDATE",
"EMP_SRC_TRG_CONN"."SAL" "SAL",
"EMP_SRC_TRG_CONN"."COMM" "COMM",
"DEPT_SRC_TRG_CONN"."DEPTNO" "DEPTNO_1",
"DEPT_SRC_TRG_CONN"."DNAME" "DNAME",
"EMP_SRC_TRG_CONN"."DEPTNO" "DEPTNO",
"DEPT_SRC_TRG_CONN"."LOC" "LOC"
FROM "SCOTT"."EMP" "EMP_SRC_TRG_CONN" ;
In brief this is the process i have done.
Source schema : SCOTT & Target schema : TRG_SCHEMA
1) I have created source (for SCOTT) and target(for TRG_SCHEMA) modules.
2) I have also created DBLinks, Locations and Connector from source to the target locations.
3) I registered both the source location and target locations.
4) Validated, Generated and Deployed the Connector from source to the target.
I was unable to trace the error. Did i miss anything in the configuration? or during the installation of OWB.
Though it is a very old post, i hope someone can help me out here.
Thanks in Advance,
Sri -
Find sys schema for imp database in 9i
Hi Experts,
Based on ORACLE rcommandation, I will take exp/imp to full database to other server ( it is only way based on source DB condition)
To avoid duplicated system objects, i run a sql to get a schema list
==============================
SQL> select owner from dba_objects group by owner order by
OWNER
CRYSTAL
CTXSYS
MDSYS
NWEKRANESES
ODM
ODM_MTR
OWNER
OE
OLAPSYS
ORDPLUGINS
ORDSYS
OUTLN
PIDLPASCUA
PM
PUBLIC
QS
QS_ADM
QS_CBADM
OWNER
QS_CS
QS_ES
QS_OS
QS_WS
SH
SYS
SYSTEM
WKSYS
WMSYS
XDB
32 rows selected.
SQL>
I am not sure which scheam is a system schema for oracle 9.0.06.0 in above SQL
So that I only need to emp/imo user data and programmeing codes.
by the way, Does sys schema stored user codes information or objects in there?
Thanks for your help!
JIM
Edited by: user589812 on Apr 22, 2009 12:28 PMThanks for your help.
I got lots of message as
Column : DESC[RIBE] {[schema.]object[@connect_identifier]}
IMP-00019: row rejected due to ORACLE error 1
IMP-00003: ORACLE error 1 encountered
ORA-00001: unique constraint (SYSTEM.HELP_TOPIC_SEQ) violated
Column : DESCRIBE
Column : 9
Column :
IMP-00019: row rejected due to ORACLE error 1
IMP-00003: ORACLE error 1 encountered
ORA-00001: unique constraint (SYSTEM.HELP_TOPIC_SEQ) violated
Column : DISCONNECT
Column : 1
Column :
IMP-00019: row rejected due to ORACLE error 1
IMP-00003: ORACLE error 1 encountered
ORA-00001: unique constraint (SYSTEM.HELP_TOPIC_SEQ) violated
Column : DISCONNECT
Column : 2
Column : DISCONNECT
IMP-00019: row rejected due to ORACLE error 1
IMP-00003: ORACLE error 1 encountered
ORA-00001: unique constraint (SYSTEM.HELP_TOPIC_SEQ) violated
Column : DISCONNECT
I am reviewing your paperlink that ia ver usefull.
As DBA_mike said, it seems there are a potential issue if user creates object by system account.
This is very old DB without archived and documents. we need to migreated to 10g/11i
Thanks
JIM -
Grants problem in public synonym created though Database link
Hi all,
I have created the public synonym by using the table in the remote db in schema A.
create public synonym test_syn for test_syn@rating.
Now I want to grant a another user (say B) to access privillages on test_syn.
(unable to grant the sysnonym using grant select on test_syn to B )
Database link has been created by the user A.
Please lat me know how I can grant select on synonym test_syn to B in this case.
Thanks and regards
BuddhikeI think you should grant right on the original object (test_syn@rating)
Maybe you are looking for
-
Hi , Can any expert let me know how to identify the Payments for an entire year that are paid to a vendor . i mean the table i need to look for , or any configuration to be made and how the payments are calculated like the outgoing payments or incomi
-
Emails are not going out - using oultook 2010
Hi, I just got me brand new IPHONE, my fist one !!! WAW ! I receive me mails but I'm not able to send ones unless I'm at home (I guess connected to my wi-fi router....) Any one know what I need to do to let go my email out my IPHONE where ever I am
-
If I deactivate all computers will all downloads, pictures and music libraries remain accessible after re-authorizing a computer?
-
Hi All, I am a newbie to ABAP Webdynpro.I would liketo know how should I get the value from an input field at runtime? Thanks,Mukta
-
GR for BOM Material with Serial number
Hi all I have 2 serialised materials A and B, A is the Parent Material and B the child material (BOM Scenario), both having serial numbers I want to do GR without PO (501movement type) for the A material with the serial number, while doing GR i want