Problem auto-creating tables with the IBFBS sample
Hello,
I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
"Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
Error creating table: ORA-00922: missing or invalid option"
The app fails to start with an Ora message "Table or view does not exist"
I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
Any help appreciated.
Nick
Hi Nick,
Firstly, regret for the late response.
I guess what you are trying to do is run the Sample from JDeveloper itself. But this cannot be done, you have to deploy the
sample to the embedded OC4J(<JDEV_HOME>/j2ee/home) bundled with JDev and run the sample from embedded OC4J.
Refer to http://otn.oracle.com/sample_code/tutorials/fbs/over/setup.htm and follow the steps to deploy to OC4J.
Curious to know if you were able to run it.
Regards
Elango.
Hello,
I'm fairly new to JDeveloper and OC4J and am trying to configure the new Financial Brokerage Service (IBFBS) sample to run on my system. I followed all of the setup instructions but have had problems getting the application to work. I've worked through a few issues, but I'm stuck on this one. When deploying/running the application to the JDev embedded OC4J an error occurs when trying to auto-create the tables for some of the EJBs. The error messages are all similar to this:
"Auto-creating table: create table UserAccount_file:_M:_Ja_rfpkl9 (accountNumber NUMBER not null primary key, password VARCHAR2(255) null, firstName VARCHAR2(255) null, lastName VARCHAR2(255) null, organization VARCHAR2(255) null, address VARCHAR2(255) null, city VARCHAR2(255) null, state VARCHAR2(255) null, country VARCHAR2(255) null, phone VARCHAR2(255) null, accountBalance FLOAT null, email VARCHAR2(255) null, userType VARCHAR2(255) null, linesPerPage NUMBER null, alertMode VARCHAR2(255) null, mobileEmail VARCHAR2(255) null)
Error creating table: ORA-00922: missing or invalid option"
The app fails to start with an Ora message "Table or view does not exist"
I think it's due to the colons in the table name, but how do I change the name of the table it's trying to create?
I'm running JDeveloper 9.0.3 preview and 9.2.0.1.0 (patchset 1 applied) database all locally on a Windows XP SP1 machine.
Any help appreciated.
Nick
Similar Messages
-
Auto-creating tables with CMP Explicit Mapping
Hello.
I am trying to migrate a working CMP EJB Jar from Weblogic to OC4J, using the admin.jar deploy utility. I believe my orion-ejb-jar.xml deployment descriptor (shown at the bottom) is set up properly, but OC4J attempts to auto-create tables for my entity beans anyway. (see messages that follow).
Can anybody tell me why it tries to create these tables? Is something missing from my deployment descriptor?
Thanks,
David
Auto-creating table: create table User_passwords_Passwor__fqeml6 (User_SEC_USER.
SEC_USER_ID NUMBER not null, Password_SEC_USER_PASSWORD_ID NUMBER null)
Error creating table: ORA-01748: only simple column names allowed here
Auto-creating table: create table User_userRoles_UserRol__guatbv (User_SEC_USER.
SEC_USER_ID NUMBER not null, UserRole_SEC_USER_ROLE_ID NUMBER null)
Error creating table: ORA-01748: only simple column names allowed here
Auto-creating table: create table Permission_RolePermiss__768cc0 (Permission_SEC
FUNCTIONID NUMBER not null, RolePermission_SEC_ROLE_FUNCTION_ID NUMBER null)
Error creating table: ORA-00972: identifier is too long
Auto-creating table: create table Role_UserRole_role_User_39lzhp (Role_SEC_ROLE.
SEC_ROLE_ID NUMBER not null, UserRole_SEC_USER_ROLE_ID NUMBER null)
Error creating table: ORA-01748: only simple column names allowed here
Auto-creating table: create table Role_rolePermissions_Ro_4ocmz1 (Role_SEC_ROLE.
SEC_ROLE_ID NUMBER not null, RolePermission_SEC_ROLE_FUNCTION_ID NUMBER null)
Error creating table: ORA-01748: only simple column names allowed here
orion-ejb-jar.xml
<?xml version="1.0"?>
<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
<orion-ejb-jar deployment-version="9.0.3.0.0" deployment-time="e6e55808e4">
<enterprise-beans>
<session-deployment name="SecurityComponent" >
</session-deployment>
<session-deployment name="ServerSecurityContext" >
</session-deployment>
<session-deployment name="SecurityComponentSecurityFilter" >
</session-deployment>
<entity-deployment name="User" table="SEC_USER" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="userId" persistence-name="SEC_USER.SEC_USER_ID" />
</primkey-mapping>
<cmp-field-mapping name="partyId" persistence-name="PARTY_ID" />
<cmp-field-mapping name="officeLocation" persistence-name="OFFICE_LOCATION" />
<cmp-field-mapping name="defaultLocation" persistence-name="DEFAULT_LOCATION" />
<cmp-field-mapping name="districtVvid" persistence-name="DISTRICT_VVID" />
<cmp-field-mapping name="userName" persistence-name="SEC_USER.USER_NAME" />
<cmp-field-mapping name="accountActivationDate" persistence-name="SEC_USER.ACCOUNT_ACTIVATION_DATE" />
<cmp-field-mapping name="defaultBranchVvid" persistence-name="SEC_USER.DEFAULT_BRANCH_VVID" />
<cmp-field-mapping name="unitVvid" persistence-name="UNIT_VVID" />
<cmp-field-mapping name="sectionVvid" persistence-name="SEC_USER.SECTION_VVID" />
<cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
<cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
<cmp-field-mapping name="failedLoginAttempts" persistence-name="SEC_USER.LOGIN_ATTEMPTS_CNT" />
</entity-deployment>
<entity-deployment name="Permission" table="SEC_FUNCTION" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="permisssionId" persistence-name="SEC_FUNCTION_ID" />
</primkey-mapping>
<cmp-field-mapping name="permission" persistence-name="FUNCTION_NAME" />
</entity-deployment>
<entity-deployment name="Role" table="SEC_ROLE" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="roleId" persistence-name="SEC_ROLE.SEC_ROLE_ID" />
</primkey-mapping>
<cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
<cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
<cmp-field-mapping name="roleDescription" persistence-name="SEC_ROLE.ROLE_DESC" />
<cmp-field-mapping name="roleName" persistence-name="SEC_ROLE.ROLE_NAME" />
</entity-deployment>
<entity-deployment name="Password" table="SEC_USER_PASSWORD" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="passwordId" persistence-name="SEC_USER_PASSWORD_ID" />
</primkey-mapping>
<cmp-field-mapping name="password" persistence-name="PASSWORD" />
<cmp-field-mapping name="activeInd" persistence-name="ACTIVE_IND" />
<cmp-field-mapping name="expirationDate" persistence-name="EXPIRATION_DATE" />
<cmp-field-mapping name="userId" persistence-name="SEC_USER_ID" />
<cmp-field-mapping name="lastUpdateTimestamp" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_DT" />
<cmp-field-mapping name="lastUpdateSystemUserId" persistence-name="AUD_SYSTEM_OBJECT.LAST_UPDATE_SEC_USER_ID" />
</entity-deployment>
<entity-deployment name="UserRole" table="SEC_USER_ROLE" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="userRoleId" persistence-name="SEC_USER_ROLE_ID" />
</primkey-mapping>
<cmp-field-mapping name="sequenceNum" persistence-name="SEQUENCE_NUM" />
<cmp-field-mapping name="userId" persistence-name="SEC_USER_ID" />
<cmp-field-mapping name="roleId" persistence-name="SEC_ROLE_ID" />
</entity-deployment>
<entity-deployment name="RolePermission" table="SEC_ROLE_FUNCTION" data-source="datasource-ecmsOraclePool">
<primkey-mapping>
<cmp-field-mapping name="roleFunctionId" persistence-name="SEC_ROLE_FUNCTION_ID" />
</primkey-mapping>
<cmp-field-mapping name="functionId" persistence-name="SEC_FUNCTION_ID" />
<cmp-field-mapping name="roleId" persistence-name="SEC_ROLE_ID" />
<cmp-field-mapping name="sequenceNum" persistence-name="SEQUENCE_NUM" />
</entity-deployment>
</enterprise-beans>
<assembly-descriptor>
</assembly-descriptor>
</orion-ejb-jar>Hi David,
The "autocreate-tables" attribute is defined in the DTD for the "orion-application.xml" file. This file is usually generated automatically by OC4J, from your application's "application.xml" file when you deploy your application. (Note that subsequent [re-]deployments of your application will not change the "orion-application.xml" file.)
The default value for this attribute is 'true', and the default is defined in the "application.xml" file that is located in the "j2ee/home/config" subdirectory of the OC4J installation.
Hope this answers your question.
Good Luck,
Avi. -
Problem on CREATING TABLES with PRIMARY KEY
Hi there !
I use the orcle 8i, and i don't know why i can't create table with any primary key EXample:
SQL> CREATE TABLE O_caisses
2 (No_caisse NUMBER(3) constraint caisses_pk PRIMARY KEY,
3 NB_BILLETS NUMBER(5)
4 )
5 /
CREATE TABLE O_caisses
ERROR at line 1:
ORA-18008: cannot find OUTLN schema
Please could some body help me !
Thanks alot!
Luong.Luong,
Your syntax is fine. It looks like you don't have the correct database privileges to create the table. The error message you're getting suggests that you don't have CREATE ANY OUTLINE privileges. You should log in as a user than can grant these privileges and give yourself the correct privileges. I think the syntax is
SQL>grant create any outline to username;
Alison -
Problem by creating table in the SHC Web-based Development Workbench
Dear all,
I'm facing an error by creating a new table with a file within a XS app.
file name: new.hdbtable
table.schemaName = "NEO_xxxxxxxxxxxxxxxxxxxxx";
table.tableType = COLUMNSTORE;
table.columns = [
{name = "id"; sqlType = INTEGER; nullable = false;},
{name = "text"; sqlType = SHORTTEXT;}
table.primaryKey.pkcolumns = ["id"];
The given message:
Error while activating:
Repository: Internal error during statement execution, please see the database error traces for additional details;sql syntax error: incorrect syntax near "NULL": line 1 col 112 (at pos 112) at qp_gram.y:40123,ALTER TABLE "NEO_xxxxxxxxxxxxx"."s000xxxxxxxxxxtrial.xxxxxxxx.new.data::new" ADD ("text" SHORTTEXT NULL)
SHORTTEXT is allowed column type, but I'm still receiving the message. As soon as I change the type to TEXT the table is successfully activated.
Is there any specific reason for this?
Thanks & Regards,
MartinHI Martin
Even I'm facing the same issues did you resolve it??? -
Can not create table with the CLOB type VARRAY, ORA-02348: cannot create VA
CREATE OR REPLACE TYPE Project AS OBJECT (
project_no NUMBER(2),
title VARCHAR2(35),
cost CLOB );
CREATE OR REPLACE TYPE ProjectList AS VARRAY(50) OF Project;
CREATE TABLE department (
dept_id NUMBER(2),
name VARCHAR2(15),
budget NUMBER(11,2),
projects ProjectList );
The table creatation always with the error :
ORA-02348: cannot create VARRAY column with embedded LOB
Can anybody help ???Hi Peng,
It seems you have hit a limitation of the Oracle version, which you don't post.
Limitations are sometimes also called a 'feature'.
You would need to find out whether this restriction has been lifted in a subsequent release or redesign your application.
Sybrand Bakker
Senior Oracle DBA -
Problem CREATE TABLE with PRIMARY KEY Still in Trouble ! Please Help!
Hi there !
I use the orcle 8i, and i don't know why i can't create table with any primary key EXample:
SQL> CREATE TABLE O_caisses
2 (No_caisse NUMBER(3) constraint caisses_pk PRIMARY KEY,
3 NB_BILLETS NUMBER(5)
4 )
5 /
CREATE TABLE O_caisses
ERROR at line 1:
ORA-18008: cannot find OUTLN schema
***********some Debuger show me this way: *********************
Well there r certain point u got to notice when creating a table with constraints.
1) U can create table with COLUMN level constraint.
2) U can create table with TABLE level constraint.
3) In COLUMN level constraint u can't give a constraint a name
but only mention the type of constraint.
4) In TABLE level constraint u can give a name to constraint.
Following are the examples of both
--COLUMN LEVEL
CREATE TABLE O_caisses
(No_caisse NUMBER(3) PRIMARY KEY,
NB_BILLETS NUMBER(5));
--TABLE LEVEL
CREATE TABLE O_caisses
(No_caisse NUMBER(3),
NB_BILLETS NUMBER(5),
constraint pk_caisse primary key (No_caisse));
********************And this is another one:*****************
SQL>grant create any outline to username;
BUT the problem is still present, i don't know what to do now !
Please could some body help me !
Thanks alot!
Luong.The clue is in the error message: the OUTLN schema is missing.
This is something Oracle 8i introduced to help manage the CBO (or soemthing equally geeky and internal). For some reason your database no longer has this user. It ought to be created automatically during installation (or upgrade) but catproct may not have completed probably or some over zealous admin type has dropped it.
Solution is to re-install (or re-upgrade) as you cannot create this user on their own. Alas.
HTH, APC -
Create a View with many tables with the Table-Fieldnames
Hello!
Question 1)
Which kind of view is the correct for joining
many tables together.
Question 2)
What is the solution in case of having several tables
with the same fieldnames by creating a view. How can I choose this fields
into a view. I cant use the same name twice in section
(tab strip) ViewFlds.
Regards
IlhanHi Ilhan,
There is no problem in the view fieldname you can put something like this :
This is you who choose the view field name so...
View Fieldname Table Field
VBAK_VBELN vbak vbeln
vbap_vbeln vbap vbeln
Erwan -
OID users ( EUS) problem with grant create table with admin
Hi,
We activated enterprise users in the OID.
There is a role APP_ADMIN that has the following grants:
create user
drop user
create table with admin option
this is for an application that creates BI schemas, so it needs to be able to create other users.
I have granted these to a local role, and the user has access to the local role, thanks to the OID setup.
The create and drop user work.
however, the grant create table to another user does not work.
Is there an issue with 'with admin option' grants in Enterprise user security?
Regards,
PeterIf I grant
grant create table to test_role with admin option;
it does not work
if I grant
GRANT GRANT ANY PRIVILEGE to test_role WITH ADMIN OPTION;
it does work.
The test command as user with test_role is:
grant create table to test_usr;
very strange!
If the user is a standard user and I create role test_role
and grant create table to test_role with admin option it works.
but if I convert the user to an EUS user and the same privilege is given to the role ( role is granted to a global role to an enterprise role)
it doesnt work
Edited by: Peter on Dec 7, 2012 2:36 PM -
Auto Create Table problem in Jdev903
Hi,
I am writing EJB application and used CMR. To develop this application I am using JDeveloper(Oracle 9i-OC4J).When I run this application, it metically creates CMR tables. But I don't want to that JDeveloper should create auto table, for that I have configured in
application.xml <orion-application autocreate-tables="false" ...>.
still now it creates auto table and generates identifire is to long error.
I don't want to auto create table, I want to cofigure that it uses our databse tables. so give any solution what will be configuration, as soon as possible.
is it supported by Oracle9i OC4J Jdev903 Conatiner Managed Relatioship or notAlso, create the user in the "Users" tablespace. You want to
keep your System tablespace clear of non-system created items.
After connecting as system/manager, enter the following:
Create user username
identified by password
default tablespace users
temporary tablespace temp;
grant create session, resource to username; -
Problem with creating links with the WPC (SP14)
Hi,
I have a problem creating links with the WPC (SP14): When I want to create internal links (Browse and select the target item) via the right button (choosing a website as a reference link). If I do so I encounter the problems either that the linked site (outside the WPC) shows a blue background and/ or has no navigation frame (on the left side & no breadcrumb-navigation on top).
If I create links with the left button in the WPC via URLs I have the problem with the inserted URL, because sometimes (I don't know why und when) some parts of the code in the URL changes, so that the linked Website is empty (besides the navigation fram - the content isn't displayed anymore). To me it looks like as if the originally website cannot be "found" anymore.
Does anyone has the same problems and is eventually able to help me? This would be really great. Thanks!Hi,
you have also to deploy the following file from Service Marketplace:
Patch for SP14 for KMC WEB PAGE COMPOSER 7.00
Than it will works. The best way is you deploy WPC SP 15.
If you want i can send you this file via email.
regards,
Sharam
Edited by: Seed mopo on Apr 28, 2008 11:45 AM -
Problem while Creating MVLOG with synonym in Oracle 9i:Is it an Oracle Bug?
Hi All,
I am facing a problem while Creating MVLOG with synonym in Oracle 9i but for 10G it is working fine. Is it an Oracle Bug? or i am missing something.
SQL> select * from v$version;
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SQL>
SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
Table created.
SQL> create materialized view log on t;
Materialized view log created.
SQL> create public synonym syn_t for t;
Synonym created.
SQL> CREATE MATERIALIZED VIEW MV_t
2 REFRESH ON DEMAND
3 WITH PRIMARY KEY
4 AS
5 SELECT name,id
6 FROM syn_t;
Materialized view created.
SQL> CREATE MATERIALIZED VIEW LOG ON MV_t
2 WITH PRIMARY KEY
3 (name)
4 INCLUDING NEW VALUES;
Materialized view log created.
SQL> select * from v$version;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
PL/SQL Release 9.2.0.6.0 - Production
CORE 9.2.0.6.0 Production
TNS for Solaris: Version 9.2.0.6.0 - Production
NLSRTL Version 9.2.0.6.0 - Production
SQL>
SQL> create table t ( name varchar2(20), id varchar2(1) primary key);
Table created.
SQL> create materialized view log on t;
Materialized view log created.
SQL> create public synonym syn_t for t;
Synonym created.
SQL> CREATE MATERIALIZED VIEW MV_t
REFRESH ON DEMAND
WITH PRIMARY KEY
AS
2 3 4 5 SELECT name,id
FROM syn_t; 6
Materialized view created.
SQL> CREATE MATERIALIZED VIEW LOG ON MV_t
WITH PRIMARY KEY
(name)
INCLUDING NEW VALUES; 2 3 4
CREATE MATERIALIZED VIEW LOG ON MV_t
ERROR at line 1:
ORA-12014: table 'MV_T' does not contain a primary key constraintRegards
Message was edited by:
Avinash Tripathi
nullHi Nicloei,
Thanks for the reply. Actually i don't want any work around (Creating MVLOG on table rather than synonym is fine with me) . I just wanted to know it is actually an oracle bug or something else.
Regards
Avinash -
Problem while creating xml with cdata section
Hi,
I am facing problem while creating xml with cdata section in it. I am using Oracle 10.1.0.4.0 I am writing a stored procedure which accepts a set of input parameters and creates a xml document from them. The code snippet is as follows:
select xmlelement("DOCUMENTS",
xmlagg
(xmlelement
("DOCUMENT",
xmlforest
(m.document_name_txt as "DOCUMENT_NAME_TXT",
m.document_type_cd as "DOCUMENT_TYPE_CD",
'<![cdata[' || m.document_clob_data || ']]>' as "DOCUMENT_CLOB_DATA"
) from table(cast(msg_clob_data_arr as DOCUMENT_CLOB_TBL))m;
msg_clob_data_arr is an input parameter to procedure and DOCUMENT_CLOB_TBL is a pl/sql table of an object containing 3 attributes: first 2 being varchar2 and the 3rd one as CLOB. The xml document this query is generating is as follows:
<DOCUMENTS>
<DOCUMENT>
<DOCUMENT_NAME_TXT>TestName</DOCUMENT_NAME_TXT>
<DOCUMENT_TYPE_CD>BLOB</DOCUMENT_TYPE_CD>
<DOCUMENT_CLOB_DATA>
<![cdata[123456789012345678901234567890123456789012]]>
</DOCUMENT_CLOB_DATA>
</DOCUMENT>
</DOCUMENTS>
The problem is instead of <![cdata[....]]> xmlforest query is encoding everything to give < for cdata tag. How can I overcome this? Please help.SQL> create or replace function XMLCDATA_10103 (elementName varchar2,
2 cdataValue varchar2)
3 return xmltype deterministic
4 as
5 begin
6 return xmltype('<' || elementName || '><![CDATA[' || cdataValue || ']]>
7 end;
8 /
Function created.
SQL> select xmlelement
2 (
3 "Row",
4 xmlcdata_10103('Junk','&<>!%$#&%*&$'),
5 xmlcdata_10103('Name',ENAME),
6 xmlelement("EMPID", EMPNO)
7 ).extract('/*')
8* from emp
SQL> /
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SMITH]]></Name>
<EMPID>7369</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ALLEN]]></Name>
<EMPID>7499</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[WARD]]></Name>
<EMPID>7521</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JONES]]></Name>
<EMPID>7566</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MARTIN]]></Name>
<EMPID>7654</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[BLAKE]]></Name>
<EMPID>7698</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[CLARK]]></Name>
<EMPID>7782</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SCOTT]]></Name>
<EMPID>7788</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[KING]]></Name>
<EMPID>7839</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[TURNER]]></Name>
<EMPID>7844</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ADAMS]]></Name>
<EMPID>7876</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JAMES]]></Name>
<EMPID>7900</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[FORD]]></Name>
<EMPID>7902</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MILLER]]></Name>
<EMPID>7934</EMPID>
</Row>
14 rows selected.
SQL> -
Hallo to all,
I've successful installed the "SAP NetWeaver 04s ABAP".
Now the first I want to do, is to create a Table with the Transaction SE11, but I receive the Message, that I need an OSS Developer Key. Is it not possible to create a table in this version?
I used the default users BCUSER and DDIC.
Does someone has an idea?
Greetings
SeraphimHi Ravi,
I've successfully create a Table with the name ZSE_XXXXX.
May be I have to use the Name structure ZXY_Tablename.
When I try to create a Table with the following Name
ZSENAME I need a Developer key. I also try the name
Z_SE_Tablename and get the same Error message.
There are no problems in my office SAP System when I use
the database name Z_SE_Tablename.
Thanks and bye
Seraphim
P.S.
Is it possible to get a Developer key if you only have a "SAP NetWeaver 04s ABAP" -
Anyone have the problem I'm having with the Safari collecting cookies even when I'm not on a website? I cleaned everything out and checked several times. Each time cookies were added that I've never seen with my older version of Safari. I have the block third parties and advertisers but I don't think it works. Here's a sample of what is popping up: 247realmedia.com, 2mdn.net addthis.com, admeld.com, adsafeprotected.com, adsonar.com, bit.ly, bluekai.com, bluelithium.com, bluetoad.com bondware.com.......... over 100 things without a clue where they are coming from. Especially since I'm not on any webpage! How do I report a bug? Is there a way to fix this?
Firefox + NoScript, BetterPrivacy, Ghostery, AdBlock Plus, Click&Clean helps.
Hidden Flash cookies are stored in "Macromedia" Folders on your computer, can delete using the free Easy Find, but need to reinstall Flash again here
http://www.macupdate.com/app/mac/11076/easyfind
http://get.adobe.com/flashplayer/
OnyX run afterwards All the cleaning and maintenance steps followed by a reboot, followed by a Disk Utility erase free space.
http://www.titanium.free.fr/
CCleaner is in beta for OS X, can combine the cleaning and secure erase in the same steps if properly configured.
http://www.piriform.com/mac/ccleaner
Ideally, to surf XXX sites, one should use a virtual machine software like the free VirtualBox and a ISO of Linux like MacBuntu,
https://www.virtualbox.org/
http://www.oslike.se/
comes with Firefox and Flash is available in the Ubuntu Software Center, create a "snapshot" of this virtual machine to revert back too after surfing. This dumps everything hidden or malware related in the guest OS, scrub the drive if you wish with Disk Utility Erase free space option.
HTML 5 has introduced a whole new range of tracking ability, you can search for the details online.
Flash cookie, everycookie, HTML cookies. Google has trackers all over the internet, they record your computer info and all your searches, ISP's record all your IP traffic and keep it for a year, cell carriers track your location via tower and signal triangulation (even non-GPS/smartphones) and keep the results for 6 months and both turn over everything to governments. In fact Uncle Sammy has NSA backrooms on the Internet backbone capturing the traffic in real time.
http://yro.slashdot.org/story/11/03/26/179257/German-Politician-Demonstrates-Ext ent-of-Cellphone-Location-Tracking
Turn off Java. Run with little or no scripts. (NoScript)
SSD drives can't be securely erased as this would wear them out prematurely, the government and police have a portable device from Cellbright they can attach to over 3000 phones and grab the data and password with.
http://hardware.slashdot.org/story/11/02/17/1911217/Confidential-Data-Not-Safe-O n-Solid-State-Disks
http://www.thenewspaper.com/news/34/3458.asp
Creepy program track you by pictures you took
http://www.thinq.co.uk/2011/3/30/creepy-app-warns-end-privacy/
Apple trying to patent new spyware
https://www.eff.org/deeplinks/2010/08/steve-jobs-watching-you-apple-seeking-pate nt-0
http://betanews.com/2011/04/20/apple-tracking-location-of-ios4-device-users-rese archers-say/
Each computer has a unique ID and a MAC addrress on file with Apple, Java gives up this information with a simple script on websites
Also look here and freak out.
http://www.whatsmyip.org/more/
You can't win, the government, advertisers, social sites, search engines and devices makers are all in cohoots to profile everyone.
Live off the grid and have your freedom or tell everyone your business and let them mold you, there is no "in between", try as you may they just come up with new stuff to watch you, through your web cam, via the hidden microphone and even can turn on some cell phones microphones too.
You may be paranoid, so is the government, and they got more money, power and resources at their disposal to act on it.
Erase the whole hard drive and reinstall, if you can't do that, trash the entire machine and go read a book.
https://discussions.apple.com/message/16276201#16276201
(ps. that was fun, enjoy the paranoia because they ARE watching you.) -
Trigger to update field on a table with the sum of fields on another table
My experience creating triggers and pl/sql in general can best be described in oracle terms as null. I've been practicing by creating tables and applications on my personal home server to help me with some of my work related tasks. Right now I'm trying to create a trigger that will, after insert, update, delete on the assignment_time_track table update the time_spent field on the assignments table with the sum of the time_spent fields on the assignment_time_track table. Hopefully that run on sentence there is clear to people other than myself. I've attempted to script this on my own using the trigger creation tool for Oracle Database Express Edition but I get the following error:
Trigger create was not successful for the following reason:
ORA-06552: PL/SQL: Compilation unit analysis terminated ORA-06553: PLS-320: the declaration of the type of this expression is incomplete or malformed
Here is my attempt at creating the trigger on my own.
create or replace trigger "ASSIGNMENT_TIME_TRACK_T1"
AFTER
insert or update or delete on "ASSIGNMENT_TIME_TRACK"
for each row
begin
update assignments
set time_spent = (select sum(time_spent)
from assignment_time_track
where assignment_time_track.name = assignments.name);
end;
If what I've posted isn't clear or more detail is needed, let me know and I'll respond with a complete description of both tables and my goals for each table. Thanks in advance for any help. I will also gladly accept links to tutorials or lessons that explain how to do this sort of thing.
Edited by: bobonthenet on Mar 9, 2009 2:01 PMHi,
If the assignments table has only one row per assignment, why is the primary key the combination of name and time_spent? If you have two two assignments called "Lab Report", isn't it possible that you would spend the same amount of time on each of them? I suggest using a sequence to assign an arbitrary id number to each assignment, and use that as the primary key.
What does each row in assuignment_time_track represent? It sounds like it is a chunk of time spent on one assignment (that is, you want to know that you spent 90 minutes on Tudesday morning working on some assignment, and that you spent another 30 minutes on Tuesday afternoon working on the same assignment). If so, then there should be a foreign key constraint in assignment_time_track referencing the primary key of assignemnt, and not the other way around.
Alex is right; you can get the total time spent on each project in a query or view; there is no need to replicate that data.
If you're new to Oracle and SQL, you should invest your time in getting more experience with the basics: everyday things like queries (using joins and GROUP BY) and views, and not spend much time on things that aren't used that much, like triggers.
If you really did have to copy the data, then you could have a trigger on assignemnt_time_track that kept the total in assignment up to date, like this:
UPDATE assignment
SET total_time_spent = total_time_spent
+ NVL (:NEW.time_spent, 0)
- NVL (:OLD.time_spent, 0);I suggest you name the column in assignment something different than the column in assignment_time_track, to reduce the risk of confusion. Also, since they represent different things, the same name can't be the most descripttive for each of them.
In case you're wondering about the use of NVL, above: It allows the same statement to take care of the situation when you INSERT, UPDATE or DELETE a row in assignment_time_track. That is, if you UPDATE a row in assignment_time_track, and change the time_spent from 60 to 90, then you want to add the new time (90) and subtract the old time (60) fro the total_time_spent in assignment: that is, total_time_spent would increase by 30. If you INSERT a new row into assignment_time_track with time_spent=30, you just need to add the new time_spent (30): there is nothing to subtract. But rather than write an IF statement and a second UPDATE for that situation, you can just rely on hte fact that all :OLD values are NULL iwhen INSERTing, and treat that NULL as a 0. Likewise, when DELETing, all :NEW values are NULL..
Maybe you are looking for
-
HP Officejet Pro 8100 ePrinter & custom paper sizes
Have found all the helpful instructions about creating new custom paper sizes in Windows 7. But am complete novice & need to buy a printer for a charity. Settled on this model because of good reviews but most work will be 1 document of custom paper s
-
How do i download my files from an external hard drive to my new macbook pro
how do i dowload my files from my external hard drive onto my new macbook pro?
-
Can't get wireless connection to Gateway laptop
My wife has a school-district issued Gateway laptop- state of the art. We can't get connected to the internet at home using our new airport express. The imac gets on fine, and the gateway gets on if we simply plug the modem into the computer, but not
-
Error message in KP97 when trying to copy planning
Hello, When we try to copy one version (13) to another (0), we get 2 different error messages: 1) First message: The planning record already exists Message no. GP705 Diagnosis The CO interface is parametrized in such a way that you cannot overwrite p
-
I want use 0SEM_BCS_10 info cube for our BCS in BI.
Hi , I want use 0SEM_BCS_10 info cube for our BCS in BI. We have an R/3 ECC 6.0 with Appl Support Patch 15. We have not implemented the NEW GL functionality in OUR R/3 system. We have done only Technicahal Upgradation fron 4.7 to ECC 6.0 last year.