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
Kathy
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 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,
LucWell 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 -
DatabaseProcedure with return type prefixed with schema name
Hi (Paco)
I have a question about the DatabaseProcedure class. We are using Oracle proxy users for our database connections.
Everything is accessed via a database role that are granted to the logged on user. All our database objects, tables etc are protected with this database role.
When I want to call a database function/procedure I need to add the schema name as a prefix to the custom database object that we uses for parameters/return types.
So far so good. I can also define a parameter prefixed with schema name via the DatabaseProcedure.registerArrayType ...
But when I try to define a function call that uses this parameter I get an error saying "Declaration is not valid".
The problem is located to the PROCEDURE_DEFINITION regular pattern:
private static final Pattern PROCEDURE_DEFINITION = Pattern.compile("\\s* (FUNCTION|PROCEDURE) \\s+ ([\\w.$]+) \\s* (?:\\((.*?)\\))? \\s* (?:RETURN\\s+(\\w+))? \\s* ;? \\s*", CASE_INSENSITIVE | COMMENTS | DOTALL); The return type cannot be prefixed with the schema name.
Any good suggestions or workarounds?!
I actually did change the pattern runtime via reflection to make it work - but I really don't like this solution in the long run!
/Torben
Edited by: Zonic on 2013-05-07 10:52Hi Torben,
I think I have a workaround for the issue that might work for you. If you look at the source of <font face="courier">DatabaseProcedure.registerArrayType</font> you find that it actually calls <font face="courier">DatabaseProcedure.registerCustomParamType</font>.
public static void registerArrayType(String name)
registerCustomParamType(name, Types.ARRAY, Array.getORADataFactory(), name);
}As a workaround you could replace your calls to <font face="courier">DatabaseProcedure.registerArrayType</font> with calls to <font face="courier">DatabaseProcedure.registerCustomParamType</font> as follows.
// Instead of DatabaseProcedure.registerArrayType("NAME.WITH.DOTS") call:
DatabaseProcedure.registerCustomParamType("anyNameWithoutDots", Types.ARRAY, Array.getORADataFactory(), "NAME.WITH.DOTS"); // Don't forget to use uppercase here.
DatabaseProcedure dp = DatabaseProcedure.define("procedure my.procedure(param1 in out anyNameWithoutDots)");
DatabaseProcedure.ParamType type = dp.getParamDef(0).getType();
System.out.println(type.getName() + " is " + type.getTypeName()); // ANYNAMEWITHOUTDOTS is NAME.WITH.DOTSThis way you don't have to use the "illegal" name in the DatabaseProcedure definition.
Regards,
Paco van der Linden -
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) -
Querying, then generating ArrayLists with variable names
Hi, all:
I have two problems: first, I want to run through an array list called nodeList containing Nodes, each of which possesses a 5-digit value called culture. I want each Node to try to find out whether or not there are any other Nodes that have the same culture value that it does, i.e. if Node i has culture value 74936 and there are 4 other Nodes with the same culture value, I need to find 5 total Nodes with culture value 74936.
public void statistics(){
for (int i = 0; i < nodeList.size (); i++) {
Node node = (Node) nodeList.get (i);
int cultSame = node.getCulture();
boolean same = cultSame == next.cultSame;
if (same == true){
arrayListCreator();
//generated Arraylist add.node;
}I'm going astray at next.cultSame. I'm not sure how to structure the query to the ArrayList nodeList to find all the other Nodes with the same culture value.
Second: I want to create a little method to generate ArrayLists with names based on the integers that will be stored in them. Here's the method so far:
public void arrayListCreator () {
String name = String.valueOf(cultSame);
name = new Arraylist();
}cultSame is a 5-digit integer. The ArrayLists will be used to store all the nodes with the same cultSame value, like 74936, or whatever. If the ArrayList is storing nodes with the cultSame value of 74936, I want the name of the ArrayList to be the string 74936. I want to call on this method (like you can see in the first method) to generate the ArrayList with its given name and then use it to store the nodes in it. Once I've done that, I can figure out the statistics stuff on my own, I think. I'm just not sure how to create the ArrayLists with a name that's a variable, i.e. "name" should be the string variable containing a 5-digit number.Nquirer101 wrote:
I probably should have separated this out into two threads. First, I'd like to know what I'm doing wrong when I'm building that boolean query to find out in the nodeList if any of the other nodes have the same culture value as the node doing the querying.Then by all means do so, from the looks of it, the scope of the thngs that need to be discussed/addressed is too broad for one thread. First there's the issue of your erroneous understanding of variable, then there's the concept of the Map data structure, then the implementation of it in Java, along with the idea of interface -
Generate XML with tag names generated dynamically.
Hi Mark,
I want to generate xml in the following way using SQLXoperators.
But only problem is when i use the operator, the tag name should be supplied before in hand as parameter.
So it works well when the data for the tags are stored in seperate columns then its pretty simple.
But lets say the whole hierarchy of the nodes is stored in one table with ID-->PARENTID relationship and the text is stored in a column called description.
Now using CONNECT BY PRIOR i get the hierarchy and now based on the description value i have to generate the tags and then fill in the other details.
This is just a summary of what i want. the below sample has much more than that and actual data comes from more than one table.
But if i get the solution for what i asked before i think i can build the test of the thing.
<?xml version="1.0" encoding="UTF-8"?>
<SequenceData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SequenceData.xsd">
<Header>
<TemplateName>Template(XML)</TemplateName>
<TemplateVersion>1.1</TemplateVersion>
<CreatedUser>rsh2kor</CreatedUser>
<CreatedDate>17-06-2005 12.12.22</CreatedDate>
</Header>
<List>
<LoadPoints>
<LoadPoint description="Loadpoint1_in_list(level one)">
<SetPhase>
<SetPhaseVariables>
<SetPhaseVariable>
<Name>pRail</Name>
<Unit>bar</Unit>
<Value>100</Value>
<SettlingTime>0.0</SettlingTime>
</SetPhaseVariable>
</SetPhaseVariables>
<MonitoredVariables>
<MonitoredVariable>
<ID>12344<ID>
<Name>MeasPoint</Name>
<Unit>pascal</Unit>
<Limit>10</Limit>
<Tolerance>0.0</Tolerance>
<Operator>></Operator>
<AlertType>STOP</AlertType>
</MonitoredVariable>
</MonitoredVariables>
</SetPhase>
<WaitPhase>
<WaitingTime>10</WaitingTime>
<MonitoredVariables>
<MonitoredVariable>
<Name>MeasPoint</Name>
<Unit>pascal</Unit>
<Limit>10</Limit>
<Tolerance>0.0</Tolerance>
<Operator>></Operator>
<AlertType>STOP</AlertType>
</MonitoredVariable>
</MonitoredVariables>
</WaitPhase>
<MeasPhase>
<MeasPhaseVariables>
<MeasPhaseVariable>
<Name>MeasPoint</Name>
<Unit>pascal</Unit>
<Result>0</Result>
</MeasPhaseVariable>
</MeasPhaseVariables>
</MeasPhase>
</LoadPoint>
</LoadPoints>
</List>
<Loop Iteration="5">
<LoadPoints>
<LoadPoint description="Loadpoint2_in_Loop">
<SetPhase>
<SetPhaseVariables>
<SetPhaseVariable LoopCount="1">
<Name>pRail</Name>
<Unit>bar</Unit>
<Value>10</Value>
<SettlingTime>0.0</SettlingTime>
</SetPhaseVariable>
<SetPhaseVariable LoopCount="2">
<Name>pRail</Name>
<Unit>bar</Unit>
<Value>20</Value>
<SettlingTime>0.0</SettlingTime>
</SetPhaseVariable>
<SetPhaseVariable LoopCount="3">
<Name>pRail</Name>
<Unit>bar</Unit>
<Value>30</Value>
<SettlingTime>0.0</SettlingTime>
</SetPhaseVariable>
<SetPhaseVariable LoopCount="4">
<Name>pRail</Name>
<Unit>bar</Unit>
<Value>40</Value>
<SettlingTime>0.0</SettlingTime>
</SetPhaseVariable>
<SetPhaseVariable LoopCount="5">
<Name>pRail</Name>
<Unit>bar</Unit>
<Value>50</Value>
<SettlingTime>0.0</SettlingTime>
</SetPhaseVariable>
</SetPhaseVariables>
<MonitoredVariables>
<MonitoredVariable>
<Name>MeasPoint</Name>
<Unit>pascal</Unit>
<Limit>10</Limit>
<Tolerance>0.0</Tolerance>
<Operator>></Operator>
<AlertType>STOP</AlertType>
</MonitoredVariable>
</MonitoredVariables>
</SetPhase>
<WaitPhase>
<WaitingTime>10</WaitingTime>
<MonitoredVariables>
<MonitoredVariable>
<Name>MeasPoint</Name>
<Unit>pascal</Unit>
<Limit>10</Limit>
<Tolerance>0.0</Tolerance>
<Operator>></Operator>
<AlertType>STOP</AlertType>
</MonitoredVariable>
</MonitoredVariables>
</WaitPhase>
<MeasPhase>
<MeasPhaseVariables>
<MeasPhaseVariable>
<Name>MeasPoint</Name>
<Unit>pascal</Unit>
<Result>0</Result>
</MeasPhaseVariable>
</MeasPhaseVariables>
</MeasPhase>
</LoadPoint>
</LoadPoints>
<List>
<LoadPoints>
<LoadPoint description="Loadpoint3_in_list(level two)">
<MonitoredVariables/>
<SetPhase>
<SetPhaseVariables>
<SetPhaseVariable>
<Name>pRail</Name>
<Unit>bar</Unit>
<Value>100</Value>
<SettlingTime>0.0</SettlingTime>
</SetPhaseVariable>
</SetPhaseVariables>
<MonitoredVariables>
<MonitoredVariable>
<Name>MeasPoint</Name>
<Unit>pascal</Unit>
<Limit>10</Limit>
<Tolerance>0.0</Tolerance>
<Operator>></Operator>
<AlertType>STOP</AlertType>
</MonitoredVariable>
</MonitoredVariables>
</SetPhase>
<WaitPhase>
<WaitingTime>10</WaitingTime>
<MonitoredVariables>
<MonitoredVariable>
<Name>MeasPoint</Name>
<Unit>pascal</Unit>
<Limit>10</Limit>
<Tolerance>0.0</Tolerance>
<Operator>></Operator>
<AlertType>STOP</AlertType>
</MonitoredVariable>
</MonitoredVariables>
</WaitPhase>
<MeasPhase>
<MeasPhaseVariables>
<MeasPhaseVariable>
<Name>MeasPoint</Name>
<Unit>pascal</Unit>
<Result>0</Result>
</MeasPhaseVariable>
</MeasPhaseVariables>
</MeasPhase>
</LoadPoint>
</LoadPoints>
</List>
</Loop>
</SequenceData>
Pls help as soon as possible.
Thanks.I'm not Mark, but check out this article it may be helpful.
http://www.oracle.com/technology/oramag/oracle/05-may/o35asktom.html
In 10g there are other SQL statements besides connect by prior for parent child relationships.
such as:
CONNECT_BY_ROOTâreturns the root of the hierarchy for the current row; this greatly simplifies our query. (See below for an example).
CONNECT_BY_ISLEAFâis a flag to tell you if the current row has child rows.
CONNECT_BY_ISCYCLEâis a flag to tell you if the current row is the beginning of an infinite loop in your hierarchy. For example, if A is the parent of B, B is the parent of C, and C is the parent of A, you would have an infinite loop. You can use this flag to see which row or rows are the beginning of an infinite loop in your data.
NOCYCLEâlets the CONNECT BY query recognize that an infinite loop is occurring and stop without error (instead of returning a CONNECT BY loop error). -
Save NI report generator files with new names
I was trying to save labview library files under new names so that I could adapt the code but the 'Save As' option is greyed out. In certain cases, when I try to copy and paste the code, I get broken wires and cannot get the VI's to work.
I have been using the report generator toolkit which is quite limited. I was trying to delete a row from an spreasheet but there is no function to do this. So, one workaround that was suggested to me was to use the 'Excel Insert Cells' VI and change the code to instruct it to 'clear' cells rather than 'insert' them. This works, but I wanted to save a copy of the amended file under a different name so that it was independent of the installed library files but I can't seem to do this. I tried to copy out the code but got broken wires even though I have been able to do this in other instances.
Any suggestions?
Thanks,
WillHi Will,
I had the same problem with a project and found the following workaround:
To ensure the original function of any library VI, it's not recommended to just change the VI to do something else.
Therefore I expanded the VI to do both, the original functionality and the special function I needed.
I made an extra Input to the VI, which is a boolean Input.
With that extra optional Input I can now choose the function I want to do.
I made the "False" case to be default. This case works like the original function.
The "True" case is built to do my special function.
This workaround is quite easy and not dangerous. For all projects, which would use the function in their normal use case it's working just as if the file was unchanged.
And for projects using special functionality I can add a "True" constant to my VI Input and the function works as I want..
Hope this workaround helps to fix your problem!
Kind regards
adigator -
10.4.8 Server Admin will not generate CSR with unit name containing "/"
I work in a University and our Computer Store is a reseller for Thawte SSL certs. The "Organizational Unit" that my department was assigned is "Outreach Technology Services/World Campus", but when I try to generate a CSR for one of our Web sites, the Organizational Unit gets truncated to just "Outreach Technology Services" which my reseller won't accept as my Organizational Unit name.
How can I get around this?
I am running 10.4.8 Server.No the, the gui field is showing the full name "Outreach Technology Services/World Campus" but when I submit the CSR to the department that handles these, they use openssl req -noout -text -in test.csr to view the contents.
Certificate Request:
Data:
Version: 0 (0x0)
Subject: CN=secure.worldcampus.psu.edu, O=The Pennsylvania State University, OU=Outreach Technology Services/World Campus, C=US, ST=Pennsylvania, L=University Park
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:cf:f2:a7:e8:56:38:71:61:af:d1:29:1d:0d:37:
a5:5f:18:be:01:99:37:0d:db:45:1e:20:89:9f:33:
ff:be:fe:be:f0:25:b2:c0:44:08:56:d3:71:57:c1:
1d:87:2d:5e:54:99:07:13:23:58:26:93:e7:06:d2:
50:5f:b5:15:dc:69:76:09:62:02:39:e1:61:d2:9e:
3e:a8:ea:20:7a:49:97:eb:a4:ed:80:24:2b:9f:4f:
39:0e:40:cb:4c:46:0f:e3:5f:2f:73:d5:81:80:ed:
fa:08:21:5f:c4:a8:84:b1:6a:d8:3e:6b:e3:a3:08:
7c:77:b0:d0:82:c4:09:35:a7
Exponent: 65537 (0x10001)
Attributes:
a0:00
Signature Algorithm: sha1WithRSAEncryption
af:bb:0b:42:43:b1:f0:82:e4:62:c7:f7:cc:eb:8b:1e:56:fa:
1b:63:db:a4:2e:1c:07:b3:00:ff:fa:42:3b:4a:8c:7c:de:e0:
1e:f1:87:d7:44:0f:99:99:b6:a1:89:77:93:a4:d0:48:2f:7e:
d3:5d:95:e6:3e:4e:29:67:36:a4:60:00:17:a2:45:c5:28:87:
aa:01:5c:bb:20:62:05:09:a5:e5:11:e0:10:b7:96:0e:c1:2e:
bb:dd:7a:d6:4e:61:8d:d3:ae:41:54:27:8a:3f:d9:ab:bb:37:
6e:5a:28:f0:7d:a7:ac:cd:37:4f:7c:57:97:14:7e:ad:c0:c7:
e4:64
But it looks like that /World Campus is there, so It must be their .cgi that is unable to handle the "/"
So NEVER MIND. I should have checked the contents first. -
Schema name not present on filename for "Save Package Spec and Body"
In versions previous to 3.0 EA, the filename defaulted to schema.object.sql when using the "Save Package Spec and Body" on the right click of the package/body. This appears to have disappeared. Also, it now defaults to the .PLS ext/type, which I prefer to save them as .SQL (which i can override, but it would be nice in the file type dropdown). Also, I had posted a suggestion about the actual file not including the schema name prefixing the object name when using the "Save Package Spec and Body". i.e. it does create or replace package reader_package instead of what it should be doing which is create or replace package schema.reader_package
Would be nice indeed having the real name as default, and all supported PL/SQL types (as in the preferences) in the extensions dropdown.
As for the schema name inside, I reckon that would do damage for more users than it would do good for others. But a preference would be best of course.
K. -
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?? -
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 -
Schema/Owner prefix when generating scripts
I'm trying to create a foreign key between two schema's in designer. I have already added an external reference. However when I look at the code generated then no schema prefix is added and therefore the foreign key is not created.
Does anyone know how I can make sure the code is generated with the prefix?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 -
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 -
Generating SQL SELECT statement with Schema
I develop a 3rd-party application that connects to various
databases via ODBC. Our program generates the SQL statement
so that the user does not have to. When connecting to oracle the
user often gets the error message: ORA-00942: table or view does
not exist.
To work around this our tech support department has tells the
customer to enter in the Schema name before the table name.
Thus,
SELECT ItemNo from Item
becomes
SELECT ItemNo from MySchema.Item
Is there a way that I can query the Data Source to find out
the Schema name so that our program can put in in the
statement. Is there a SQLGetInfo call I can make to get
this information?
Or, should I have the Server specified in the connection
string? For SQL Server we use SQLGetPrivateProfileString to
obtain the server name and then include it in the connection
string: SRVR=<servername>
Unfortunately, if this is the case the keyword is different
depending on the ODBC Driver involved. "Server" for Microsoft.
"SRVR" for Intersolv. "ServerName" for Oracle.
Note: We do not have Oracle in-house to test with. I'm
wondering if we could get Oracle for free for development
purposes.
Any and all information would be greatly appreciated.Thanks for the tip. I just finished downloading Oracle.
One user is able to successfully view the database with the
statement:
SELECT ItemNo from Item
But if another user tries it he gets the "table or view not
found" message. Changing the statement as follows will allow
the 2nd user to view the database:
SELECT ItemNo from "MAXIMO".Item
I want my application to query the database via ODBC for the
"MAXIMO" string so I can create the correct SQL statement.
Thanks!
<<Are you trying to view tables from a non-default schema?>>I don't know. You would know better than me from my
description. -
Unable to access the objects with out schema as prefix.. can any body help
Hi,
i am using 10g.I have one problem like i unable to get the table access with out mention prefix for that table.
but i created public synonym and gave all grants to all users also. but still i need to mention schema name as prefix otherwise it give the error..
can any body tell me reason and give me solution.
ex: owner:eiis table:eiis_wipstock
connect to: egps schema
in this position if i try with eiis.wipstock it gives error but if i mention like eiis.wiis_wipstock then its working fine.Pl do not spam the forums with duplicate posts - Unable to access the objects with out schema as prefix.. can any body help
Maybe you are looking for
-
How to run 11g Form from a batch file (.bat) !
Hi, Previously, I run my Form 6i from a batch file (with Windows Schedular Tasks) as below; E:\orant\bin\ifrun60.exe e:\lock.fmx This form lock some items on a certain date (with the help of Windows Schedular Task). How can this possible in Forms 11g
-
How to fetch data from Database using SUP MBOs
I'm learning to develop blackberry apps using SUP.I am new to both blackberry api and SUP. I need to make a login page for a Student and then validate the username and password entered using data from a database. I need to check the database for the
-
I downloaded the lateest update and I can't turn off my apps like I did on 6os. The 7os is different and I can't seem to find out if apps turn off now by just closing them. Can anyone explain this to me? Please
-
Loading large "smartlist" to Classic Planning 11.1.1.2
Hi, Anyone know a quick way to load large smartlists to Planning in version 11.1.1.2? The outlineload utility does not support smartlists in v11.1.1.2 :( Thanks
-
11g ASM RAC, whole data raw disk group lost as SA mount raw disks to anther file system, rebuild +data raw disk group. rebuild spfile, restore controlfile. do rman restore database RMAN> restore database; Starting restore at 02-OCT-08 using channel O