Generate DDL without schema name
Hi,
I would like to generate a DDL with just the tables of a given schema. I found that the procedure DBMS_METADATA.GET_DDL can give me such information but all the tables are fully qualified with the schema prefixing the table's name. How can I get rid of the schema name ?
Here's what I executed on scott's schema:
set long 10000;
execute dbms_metadata.SET_TRANSFORM_PARAM(dbms_metadata.session_transform, 'SEGMENT_ATTRIBUTES', false);
execute dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'STORAGE', false);
execute dbms_metadata.set_transform_param(dbms_metadata.session_transform, 'TABLESPACE', false);
select DBMS_METADATA.GET_DDL('TABLE',table_name) from user_tables;and here's what I got:
CREATE TABLE "SCOTT"."EMP" ...
Thanks,
Luc
Well dbms_metadata.get_ddl will generate the ddl script with username by default if you dont want you can try your own script. Check the sample function which create to fix that.
Hope this helps.
SRI>set long 1000000
SRI>create or replace function aaa(nstr varchar2,nuser varchar2) return varchar2 is
2 begin
3 return replace(nstr,chr(34)||nuser||chr(34)||'.','');
4 end;
5 /
function created
SRI>select dbms_metadata.get_ddl('TABLE','DEPT') from dual
DBMS_METADATA.GET_DDL('TABLE','DEPT')
CREATE TABLE "SCOTT"."DEPT"
( "DEPTNO" NUMBER(2,0),
"DNAME" VARCHAR2(14),
"LOC" VARCHAR2(13)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "TOOLS"
SRI>select aaa(dbms_metadata.get_ddl('TABLE','DEPT'),'SCOTT') from dual;
AAA(DBMS_METADATA.GET_DDL('TABLE','DEPT'),'SCOTT')
CREATE TABLE "DEPT"
( "DEPTNO" NUMBER(2,0),
"DNAME" VARCHAR2(14),
"LOC" VARCHAR2(13)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "TOOLS"
-Sri
Similar Messages
-
Generate DDL with schema name prefix
Hi All
We are trying to generate DDL with the schema prefix on all statements.
eg. CREATE schema_name.table_name
Is it possible to do this with Designer 6i/9i or even 10g? I guess it might a server generator preference setting.
Thanks
KathyWell dbms_metadata.get_ddl will generate the ddl script with username by default if you dont want you can try your own script. Check the sample function which create to fix that.
Hope this helps.
SRI>set long 1000000
SRI>create or replace function aaa(nstr varchar2,nuser varchar2) return varchar2 is
2 begin
3 return replace(nstr,chr(34)||nuser||chr(34)||'.','');
4 end;
5 /
function created
SRI>select dbms_metadata.get_ddl('TABLE','DEPT') from dual
DBMS_METADATA.GET_DDL('TABLE','DEPT')
CREATE TABLE "SCOTT"."DEPT"
( "DEPTNO" NUMBER(2,0),
"DNAME" VARCHAR2(14),
"LOC" VARCHAR2(13)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "TOOLS"
SRI>select aaa(dbms_metadata.get_ddl('TABLE','DEPT'),'SCOTT') from dual;
AAA(DBMS_METADATA.GET_DDL('TABLE','DEPT'),'SCOTT')
CREATE TABLE "DEPT"
( "DEPTNO" NUMBER(2,0),
"DNAME" VARCHAR2(14),
"LOC" VARCHAR2(13)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "TOOLS"
-Sri -
Selection from Another schema by default without schema name qualifier.
Hi
Oracle10g release 2, LinuxOS
i want my schema (User_1) to always select,insert, update, delete the objects from another schema (User_2) without passing full schema qualifier every time whenever i don't pass any schema name explicitly.
i.e. if i pass the following guerry
select * from table_a;
the table of user User_2.table_a (User_2.table_a) will be queried by default instead of table (User_1.table_a)
and the same implementation is also required in Functions , procedures, sequences etc.
WishesThree relatively easy options
1) Create private synonyms in User_1's schema for each object in User_2's schema, i.e.
CREATE SYNONYM table_a
FOR user_2.table_a2) Create public synonyms for each object in User_2's schema. This will make it possible for all users to query user_2's objects without specifying the schema name
CREATE PUBLIC SYNONYM table_a
FOR user_2.table_a3) Change the current schema for the session (potentially in a login trigger)
ALTER SESSION SET current_schema = USER_2There are other options that are a bit more complicated like using enterprise users with shared schemas. But most people are perfectly happy with one of these three.
Justin -
Including Schema owner when generating DDL scripts
Designer 9.0.4.6
How do i set the option to include the schema owner prefix in the DDL scripts being generate ("generate server model from database") in design editor?Generating from the DB Admin tab does not prefix the objects I am generating with the schema name. There isn't a generator preference (that I've found at least) to accomplish this. Has anyone been able to generate database objects prefixed with the schema name?
Thanks,
Wayne -
SQL Developer 4.0 - Database Diff - turn off schema name in generated script
SQL Developer 4 / RDBMS 11GR2
I know SQL Developer 4 is EA, but maybe the question has the same answer in 3.3. Also if 4.0 EA questions need to be asked in a different forum, please advise.
I am new to SQL Developer and I admit to using brand Z (TOAD) for many, many years.
(1) When using Database Diff, is there a setting to turn off the schema name that is displayed in the scripts that are generated? I looked in PREFERENCES, but if it is there, I did not see it.
(2) While I have found good resources on SQL Developer, is there a FAQ on Database DIff that answers a lot of these silly type questions?
Thanks in advanceOn the first screen of the DIFF wizard there's a check box for 'Schema' - uncheck that.
-
Prefixing sequence with schema name in generated sql on oracle
Hi,
We use kodo 3.4 with an oracle database in a J2EE environment.
When we put on the kodo tracing during on of our testcases we see statements being generated like :
select LOOPBAANPERIODESEQUENCE.NEXTVAL from DUAL
When we check the rest of the statements we see :
SELECT * FROM PC52290.EINDELOOPBAAN (EINDELOOPBAAN being a table)
Is there any way to make kodo generate the following statement ?
select PC52290.LOOPBAANPERIODESEQUENCE.NEXTVAL from DUAL
Our kodo.properties we use :
javax.jdo.PersistenceManagerFactoryClass=kodo.jdbc.runtime.JDBCPersistenceManagerFactory
javax.jdo.option.Optimistic=true
javax.jdo.option.RetainValues=true
javax.jdo.option.NontransactionalRead=true
kodo.jdbc.DBDictionary=kodo.jdbc.sql.OracleDictionary
kodo.jdbc.ForeignKeyConstraints=true
kodo.LicenseKey=<VALID_LICENSE_HERE>
kodo.Log=DefaultLevel=WARN,SQL=TRACE,Runtime=WARN,Configuration=WARN
kodo.jdbc.Schemas=PC52290
kodo.PersistentClasses= ...
An example of our mapping :
<class name="LoopbaanPeriode">
<extension vendor-name="kodo" key="jdbc-sequence-factory" value="native"/>
<extension vendor-name="kodo" key="jdbc-sequence-name" value="LOOPBAANPERIODESEQUENCE"/>
<extension vendor-name="kodo" key="jdbc-class-ind-value" value="1"/>
<field name="beginDatum" persistence-modifier="persistent" />
<field name="statuut" persistence-modifier="persistent" />
<field name="loopbaan" persistence-modifier="persistent"/>
</class>
regards,
David De Schepper.Hi David,
When faced with a similar problem, I wrote my own subclass of DBDictionary
(in my case actually a subclass of OracleDictionary), and plugged it into
kodo using the kodo.jdbc.DBDictionary property. My class overrode the
following methods:
public String getFullName(Table, boolean);
public String getFullName(Index);
Then at runtime, these methods stuffed in the correct Schema name for
certain tables and indexes, based on values yoinked from some user
properties.
Not sure if this will help or not in your case.
Cheers!
.droo.
On 4/9/06 2:48 PM, in article [email protected], "David De
Schepper" <David De Schepper> wrote:
yes that works but that is not an option for us.
We have an oracle schema for each developer on our team and don't want to
hardcode it in our mapping file (for obvious reasons)
FYI : kodo 4.0.1 does it correctly (generates PC52290.LOOPBAANPERIODESEQUENCE)
but since i have problems doing the upgrade to kodo 4.0 (with as few code
changes as possible) i'm going to have to advice my company not to do the
upgrade.
(In case you are intersted or have some time :
http://forums.bea.com/bea/thread.jspa?forumID=500000029&threadID=600017073&mes
sageID=600041994#600041994) -
Change schema name without doing export and import
Is there a way of changing the name of a database schema without having to create a new user and exportng objects from the old schema into the new schema?
Are there any system tables that can be changed to modify schema name without creating a new schema?SQL> select user#,name from user$ where user#=55;
USER# NAME
55 HR
SQL> desc hr.employees
Name Null? Type
----------------------------------------- -------- ---------------------------- EMPLOYEE_ID NOT NULL NUMBER(6)
FIRST_NAME VARCHAR2(20)
LAST_NAME NOT NULL VARCHAR2(25)
EMAIL NOT NULL VARCHAR2(25)
PHONE_NUMBER VARCHAR2(20)
HIRE_DATE NOT NULL DATE
JOB_ID NOT NULL VARCHAR2(10)
SALARY NUMBER(8,2)
COMMISSION_PCT NUMBER(2,2)
MANAGER_ID NUMBER(6)
DEPARTMENT_ID NUMBER(4)
SQL> update user$ set name='RH' where user#=55;
1 row updated.
SQL> commit;
Commit complete.
SQL> select user#,name from user$ where user#=55;
USER# NAME
55 RH
SQL> desc rh.employees
ERROR:
ORA-04043: object rh.employees does not exist
SQL> desc hr.employees
Name Null? Type
----------------------------------------- -------- ---------------------------- EMPLOYEE_ID NOT NULL NUMBER(6)
FIRST_NAME VARCHAR2(20)
LAST_NAME NOT NULL VARCHAR2(25)
EMAIL NOT NULL VARCHAR2(25)
PHONE_NUMBER VARCHAR2(20)
HIRE_DATE NOT NULL DATE
JOB_ID NOT NULL VARCHAR2(10)
SALARY NUMBER(8,2)
COMMISSION_PCT NUMBER(2,2)
MANAGER_ID NUMBER(6)
DEPARTMENT_ID NUMBER(4)
conclusion:
changing the name in user$ does not change then schema name -
Access other schema's table without specify the schema name
Hi, need ur help again,
I would like to access other schema's table without specify the schema name. for example,
select * from hr.jobs;
What priviledges i need if i want to select the data in this way:
select * from jobs;
Thanks!Public synonyms have their place, but are not generally a good idea as they will cause conflicts with other schemas and applications. Another think that you can do is issue the
ALTER SESSION set CURRENT_SCHEMA = schema;
The CURRENT_SCHEMA (8i and above) parameter changes the current schema of the session to the specified schema. Subsequent nqualified references to schema objects during the session will resolve to objects in the specified schema. The setting persists for the duration of the session or until you issue another ALTER SESSION SET CURRENT_SCHEMA statement. CURRENT_SCHEMA is a session parameter only, not an initialization parameter.
This setting offers a convenient way to perform operations on objects in a schema other than that of the current user without having to qualify the objects with the schema name. This setting changes the current schema, but it does not change the session user or the current user, nor does it give you any additional system or object privileges for the session. -
Missing schema names in sqlj generated for packages
We are using jpub, version 8.1.6.0.0 Production to generate code for ~100 packages and objects.
We are creating a connection other than the schema owner, and have prefixed all the lines in our input file with the schema name and a period. We AREN'T using the "omit_schema_names" option
The generated .sqlj code for objects includes a line like:
public static final String SQLNAME = "GHMINT.WD$DISPATCHER_CHNG_TRIP_OBJ";
where "GHMINT" is the schema we want.
HOWEVER, the generated .sqlj code for package methods includes code like:
#sql [_ctx] __jPt_result = { VALUES(WD$SECURITY.USER_LOGIN(
with no schema indication, and we would get errors complaining about undeclared identifiers.
We have a workaround that involves a sed script that inserts the schema info in the appropriate places, but this seems like a bug in jpub.
Comments, RTFMs, or pointers to a newer version would be appreciated.
Thanks,
nullThank you for pointing out this oversight. It will be fixed promptly.
A. Thiesen, JPublisher development -
How to make sure that schema name is not included with generated sqls
How to make sure that schema name is not included with generated sqls with tableadapter wizard.
What should I use? Oledb, ODT.NET, where can set that I want "pure" sqls, not schemas, not ", or anything like this
I want
"Select a,b from t1" ,not "select "a","b" from schema.t1"
Also schema name is put in all parameters, all over the place... What if schema name changes. (b1test to b1prod)
. I now manually edit XML files of dataset. It works but....
thanksThe full hardware :
Processor Intel core due 3.00 MHz
RAM:1.5GB
psu:650 Watt (but i baught i cheap one so it may be actually about 400 watt)
HD Disk:160 GB
But about the power supply if it not able to run the VGA card ,Is it will not show any screen or it will not able to run the computer?? -
How to know database name and schema name
Hi ,
Once after logging in the database,how is it possible to know the current database and schema which we r using?Is there any system table where we can get the database names and schema names?
please help me out.itz urgent.
Regards,
SravanProbably not.
If the database name is the name of the current database, it would be essentially redundant. If the database name is the name of some other database, in order to get the names of all the tables in the specified schema, you could create a database link to the remote system (which assumes you have a login and password to the remote database with appropriate privileges, that the database server's tnsnames.ora file has an entry for the remote database, etc) and query the remote data dictionary tables. Even if you could do that, however, you could not dynamically create triggers on the remote database since DDL over a database link.
In theory, you could also load an appropriate JDBC driver into the database and write a Java stored procedure that would connect to the remote database (again, with an appropriate user name & password, host name, and port number) and issue DDL against that remote database. I have a hard time believing, however, that this would be a particularly beneficial approach. It would be easier just to put the appropriate code into each database that needs triggers generated or to have a separate Java application that generates triggers for a number of different databases.
Justin -
How to find the tablespace name and schema name from a dump file
Good day to all,
I recived a dump file from a client with oracle 11g, and I need do get the tablespace and schema name from the dump file. How can I do that?
Thanks.
Flávio Melo
Edited by: 933141 on 09/05/2012 07:41user12038066 wrote:
Use imp utility, it generates DDL for both tables and indexes. So you will get tablespace info for both.
Use impdp utility, it generates DDL for indexes only. So you will miss tablesapce info for tables.
Haven't found a workaround for impdp utility. Anyone knows?Are you sure you are using the impdp utility correctly? Because if you do, then sqlfile should have all gory details. -
Generate DDL for objects (just for fun)
I'm been putting together queries that generate DDL. Considering exp/imp ROWS=0 can be used, or DBMS_METADATA there is little point. Though, with restricted access those may not be possible options, but then an external tool like TOAD could do it. Therefore, my justification for this is "just for fun".
Here is one for TABLEs. It does not generate the CONSTRAINTs (which i try to get in the next query), and no storage clauses. This query is also formatted for fixed width font with tabs equivalent to eight characters:
SELECT
SUBSTR
REPLACE
CASE
WHEN Columns.Column_Id = 1 THEN
'CREATE TABLE ' || Columns.Table_Name
|| CHR(10) || '('
|| CHR(10)
END
|| ' ' || Columns.Column_Name
|| RPAD(CHR(09), Tabs - FLOOR((LENGTH(Column_Name) +1) / 8), CHR(09))
|| Data_Type
|| CASE
WHEN Data_Type IN ('CHAR', 'VARCHAR2') THEN '(' || Char_Length || ')'
WHEN Data_Type = 'FLOAT' THEN '(' || Data_Precision ||')'
WHEN Data_Type = 'NUMBER' THEN
CASE WHEN Data_Precision IS NOT NULL THEN '(' || Data_Precision
|| CASE WHEN Data_Scale IS NOT NULL THEN ', ' || Data_Scale END
||')'
END
END
|| CASE
WHEN Data_Default IS NOT NULL
THEN
RPAD
CHR(09),
CASE Data_Type
WHEN 'CHAR' THEN CASE Char_Length WHEN 1 THEN 2 ELSE 1 END
WHEN 'DATE' THEN 2
ELSE 1
END,
CHR(09)
|| 'DEFAULT '
|| (
SELECT
ExtractValue
DBMS_XMLGEN.GetXMLType
SELECT
Data_Default
FROM
All_Tab_Columns
WHERE
Owner = ''' || Columns.Owner || '''
AND Table_Name = ''' || Columns.Table_Name || '''
AND Column_Name = ''' || Columns.Column_Name ||'''
'ROWSET/ROW/DATA_DEFAULT'
FROM
Dual
END
|| CASE
WHEN Columns.Column_Id = Info.Total_Columns
THEN CHR(10) || ');' || CHR(10) || CHR(10)
ELSE ','
END,
',' || CHR(10) || CHR(10),
',' || CHR(10)
1,
181
) Statement
FROM
All_Tab_Columns Columns,
SELECT
Owner,
Table_Name,
MAX(Column_Id) Total_Columns,
MAX(FLOOR((LENGTH(Column_Name) + 1) / 8)) + 1 Tabs
FROM
All_Tab_Columns
WHERE
Owner = 'SYS'
GROUP BY
Owner,
Table_Name
) Info
WHERE
Columns.Owner = Info.Owner
AND Columns.Table_Name = Info.Table_Name
ORDER BY
Columns.Owner,
Columns.Table_Name,
Columns.Column_Id;This next query get CONSTRAINTs. No formatting is used, because it becomes quite unweildy (though, if it used multiple lines, that would change). Another interesting thing is whether the CONSTRAINT names were generated or not. If they were generated, this still uses the old name and does not generate a new one:
WITH
Cons_Columns
AS
SELECT
Owner,
Constraint_Name,
SUBSTR
REPLACE
REPLACE
XMLAgg(XMLElement("A", Column_Name)
'<A>',
'</A>'
4
) || '"' List
FROM
SELECT
Owner,
Constraint_Name,
Column_Name
FROM
All_Cons_Columns
ORDER BY
Position
GROUP BY
Owner,
Constraint_Name
SELECT
'ALTER TABLE ' || Table_Name
|| ' ADD CONSTRAINT ' || Constraint_Name
|| ' '
|| CASE Constraint_Type
WHEN 'C' THEN 'CHECK'
WHEN 'U' THEN 'UNIQUE'
WHEN 'P' THEN 'PRIMARY KEY'
WHEN 'R' THEN 'FOREIGN KEY'
END
|| '('
|| CASE
WHEN Constraint_Type = 'C' THEN
SELECT
ExtractValue
DBMS_XMLGEN.GetXMLType
SELECT
Search_Condition
FROM
All_Constraints
WHERE
Owner = ''' || Cons.Owner || '''
AND Constraint_Name = ''' || Cons.Constraint_Name || '''
'ROWSET/ROW/SEARCH_CONDITION'
FROM
Dual
WHEN Constraint_Type IN ('P', 'R', 'U') THEN
SELECT
List
FROM
Cons_Columns
WHERE
Cons_Columns.Owner = Cons.Owner
AND Cons_Columns.Constraint_Name = Cons.Constraint_Name
END
|| ')'
|| CASE Constraint_Type
WHEN 'R' THEN
SELECT
' REFERENCES (' || List || ')'
FROM
Cons_Columns
WHERE
Cons_Columns.Owner = Cons.R_Owner
AND Cons_Columns.Constraint_Name = Cons.R_Constraint_Name
|| ' ON DELETE ' || Delete_Rule
ELSE ''
END
|| ' ' || DEFERRABLE || ' ' || DEFERRED
|| ' ' || VALIDATED || ' ' || STATUS || RTRIM(' ' || RELY)
|| ';'
FROM
All_Constraints Cons
WHERE
Owner = 'SYS'
ORDER BY
1,
Constraint_Name;Shoblock, thanx!
For NUMBER is was using a wrong COLUMN, and also in the wrong order. Serves me right for not following the documentation. And, i just ignored FLOAT. But not it mostly matches DESC (except this query shows the ", 0" where DESC drop it instead).
I fixed the query above.
The XML part that gets the long has a failure. If the Data_Default contains an XML special char it will get encoded. The way to not encode it, it looks, requires PL/SQL. Which means it would not be done in one query (without a FUNCTION).
I am curious if anyone else is interested in such queries, whether for "fun" or otherwise. -
Hi:
Version 3.0.0, Build 653, which is 3.0 EA2 if I've got the name right. The version info came from Help-About.
We did something in Designer and I'd like to do the same in SQL Data Modeler if it's possible, or use a workaround at a minimum. It's something we absolutely have to have before switching over to DM from Designer.
We receive client datasets and import them into a schema. We then log in to Designer, highlight tables we've made DDL changes to lately, click Generate, choose the target schema containing fresh data but old DDL, and then click OK to merge the latest repository DDL changes into the schema with the new data but old DDL.
Here's what I know how to do right now. I have captured the Designer ddl into DM successfully. I have also captured the schema from the database with the fresh client data into DM successfully. I think I'm pretty close. I've also been able to do the Compare and see the DDL differences using Tools - Compare/Merge Models. The problem is that when I click on DDL Preview at the bottom of the Compare Models dialog box, the one containing the differences found, the button pulls up the DDL File Editor dialog box but it's empty/blank. So my question at this point is.....how do I get a ddl file so I can run it against my target client-data schema? I'm assuming the direct method I noted at the top is no longer an option since I read that in a post here somewhere.
Also, the Compare Models output includes the differences from the names of system-generated check constraints, which will always be different between our clients and us. We don't care about merging these check constraint names and would like to exclude them from the ddl file put out. Is there a way?
Thanks for any help.
Love this new product so far. Great work.
DocHi:
two possible reasons:
1) objects that should produce DDL are not among selected - check the tree in compare dialog
2) there is an error during generation of DDL - can you check datamodeler.log file in datamodeler\datamodeler\log directory for errors logged thereThe objects were selected. Plus, now it's working this morning and I didn't do anything different than yesterday, other than restart DM. I've got to contact you folks more often on this stuff because it heard you coming and it has been scared into compliance. :-)
There are log errors, though...pasted below.
What isn't working still is the View Compare Mapping button on the Relational Models Dialog box launched from the Tools - Compare/Merge Models pulldown. It is still producing a blank screen. I didn't mention this before. I do now because the ddl report is working now but there are still errors in the log from this morning's work. In general, from looking at the log output, it looks like DM is having trouble finding/writing to/from directories. Is there a workaround?
>>
Check constraint names starting with SYS_ are excluded from generated DDL.
On the check constraints, ours have the AVCON_ prefix. I think this is what Designer uses when it generates the DDL. I think I'll suggest explicitly naming the check constraints to our team, or changing the prefixes to SYS_. Consider this constraint issue resolved.
Thanks,
Doc
2010-12-14 10:42:32,704 [main] INFO ApplicationView - Oracle SQL Developer Data Modeler 2.1
2010-12-14 10:45:36,338 [Thread-12] ERROR XMLTransformationManager - Can not parse Object List: C:\LMCO-CEP-TESTDDL\ddl\CEPTEST\datatypes/DDLSelection.local
java.io.FileNotFoundException: C:\LMCO-CEP-TESTDDL\ddl\CEPTEST\datatypes\DDLSelection.local (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.getObjects(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.restoreDDLSelection(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPart(Unknown Source)
at oracle.dbtools.crest.model.design.Design.openDesign(Unknown Source)
at oracle.dbtools.crest.swingui.ControllerApplication$OpenDesign$2.run(Unknown Source)
2010-12-14 10:45:38,785 [Thread-12] ERROR XMLTransformationManager - Can not parse Object List: C:\LMCO-CEP-TESTDDL\ddl\CEPTEST\rel\87E9FE11-4DB4DB54BE18/DDLSelection.local
java.io.FileNotFoundException: C:\LMCO-CEP-TESTDDL\ddl\CEPTEST\rel\87E9FE11-4DB4DB54BE18\DDLSelection.local (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.getObjects(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.restoreDDLSelection(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPart(Unknown Source)
at oracle.dbtools.crest.model.design.Design.openDesign(Unknown Source)
at oracle.dbtools.crest.swingui.ControllerApplication$OpenDesign$2.run(Unknown Source)
2010-12-14 10:45:41,959 [Thread-12] ERROR XMLTransformationManager - Can not parse Object List: C:\LMCO-CEP-TESTDDL\ddl\CEPTEST\rel\94D54049-EB99E7974E6A/DDLSelection.local
java.io.FileNotFoundException: C:\LMCO-CEP-TESTDDL\ddl\CEPTEST\rel\94D54049-EB99E7974E6A\DDLSelection.local (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.getObjects(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.restoreDDLSelection(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPart(Unknown Source)
at oracle.dbtools.crest.model.design.Design.openDesign(Unknown Source)
at oracle.dbtools.crest.swingui.ControllerApplication$OpenDesign$2.run(Unknown Source)
2010-12-14 10:46:21,983 [Thread-19] ERROR XMLTransformationManager - Unable to load object from XML: C:\Users\dcollins\Documents\CEPDES\rel\DC29AD47-5597B6ACC66C\phys\32076570-BF29817DFF70\SType\seg_0\47E390DE-0671-C4B1-8428-0F45CBEE18F8.xml
java.io.FileNotFoundException: C:\Users\dcollins\Documents\CEPDES\rel\DC29AD47-5597B6ACC66C\phys\32076570-BF29817DFF70\SType\seg_0\47E390DE-0671-C4B1-8428-0F45CBEE18F8.xml (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.transformFromXMLToObject(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openPhysicalModel(Unknown Source)
at oracle.dbtools.crest.swingui.compare.ModelChooserDialog$OKAction$1.run(Unknown Source)
2010-12-14 10:46:24,167 [Thread-19] ERROR XMLTransformationManager - Can not parse Object List: C:\LMCO-CEP-TESTDDL\ddl\CEPTEST\rel\94D54049-EB99E7974E6A\phys\32076570-BF29817DFF70/DDLSelection.local
java.io.FileNotFoundException: C:\LMCO-CEP-TESTDDL\ddl\CEPTEST\rel\94D54049-EB99E7974E6A\phys\32076570-BF29817DFF70\DDLSelection.local (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.getObjects(Unknown Source)
at oracle.dbtools.crest.model.metadata.XMLTransformationManager.restoreDDLSelection(Unknown Source)
at oracle.dbtools.crest.model.design.storage.StorageDesign.load(Unknown Source)
at oracle.dbtools.crest.model.design.storage.oracle.StorageDesignOracle.load(Unknown Source)
at oracle.dbtools.crest.model.design.storage.oracle.v10g.StorageDesignOraclev10g.load(Unknown Source)
at oracle.dbtools.crest.swingui.compare.ModelChooserDialog$OKAction$1.run(Unknown Source) -
Schema name in front of trigger name.
I have a doubt that all the triggers in my schema of the database of my application of about 200 users have the schema name before the trigger name. Say, if the trigger is 'Trig_1' & the schema is 'Schema_1', then the trigger name is like 'Schema_1.Trig_1'. But, today, i modified one trigger & created it without the schema extension like, say 'Trig_1' as per my eg. I hope, this does not create any problem.
I hope, my question is clear. Please help in solving the doubt as it is urgent.
Regards.Please help in solving the doubt as it is urgent.This is a simple enough problem to test. If it's that urgent you would be better off investigating it yourself rather than waiting for a passing guru to pontificate. But as I happen to be in the area... ;)
Prefixing the object name with the schema name is a common enough practice in DDL scripts. When the schema name is omitted the object is created in the schema of the user running the command. If the schema name is included, the object is created in the schema specified. When this is the same as the user running the statement there is no difference. However, specifying the schema name does allow us to run installation scripts as power users i.e. those with privileges like CREATE ANY TABLE, CREATE ANY TRIGGER.
Why would we want to do this? Well, if we want to roll out a change to every schema it's a lot easier to log on as the power user account and run one script which installs a trigger in two hundred schemas than it is to log on as two hundred different accounts and run two hundred scripts.
Whether this reflects your situation is a question only you can answer. How is your application installed? If it's run from a single master script you need to include the schema owner in the DDL.
I hope my answer is clear.
Cheers, APC
Maybe you are looking for
-
Hi, I have created a sharepoint designer workflow for a document library and task is assigned to sharepoint group. I want to update a column in document library with the user's name who approved the task from sharepoint group. I tried with "Workflow
-
I've tried to upgrade to Snow Leopard 10.6.3. I run the full install and my computer restarts to complete the installation, but when it restarts the software has not upgraded. Any suggestions?
-
Hi, Is there a Function Module or BAPI to set the Business Partner Status? Thanks, Sachin.
-
Install part of cs3 on different computer
I would like to install part of cs3 on my laptop but leave dreamweaver on desktop...can you split? Since I own the software I don't see why not, but adobe is very funky about this kinda stuff i think. cs3 is on work computer as well.
-
Jabra Halo stereo bluetooth headset skipping with IPAD...
Hi, does anybody here have ever used a Jabra Halo Bluetooth Headset with an IPAD or Iphone? I just recently bought this device and paired with my IPAD and iphone 3gs, and I'm very disappointed, sound quality is great, but the audio keeps skipping eve