Revoke in Oracle 8i
Hi ,
Can anyone tell the following query in 8i is correct ?
revoke execute on <procedure name> from public;
if it is not please tell me how to revoke a execute permission on a procedure from public in oracle 8i?
Hi,
You can use
REVOKE EXECUTE ON <PROCEDURE_NAME> FROM <USER>to revoke for a user
REVOKE EXECUTE ON <PROCEDURE_NAME> FROM PUBLICwhat ever you had mentioned is correct and you should go ahead with it.
cheers
VT
Similar Messages
-
Problem while changing DB from Pointbase to Oracle
Hi All,
I dont know whether this is right place to ask this question, but I am newbie, on weblogic, and would like some assistance,
I am trying to point my DB in weblogic from Pointbase to Oracle, I have updated the database.properties file to point @ Oracle. Now when I go and try to exectue the create_db.cmd file to execute all the scripts and thereby load/create the DB, I get the below error when all the .sql files are executed.
Buildfile: C:\bea\WLSERV~1.0\common\p13n\db\build_createdatabase.xml
init_props:
init_tasks:
main:
setup_create_database_objects:
init_props:
init_tasks:
create_database_objects:
echo ***** Calling JDBCDataLoader ** to create database objects and insert seed data
java Loading Database...
java logFile=create_db.log
java user=akulas
java password=******
java url=jdbc:oracle:thin:@hpcad144.qwest.net:1524:dnets_d
java files=C:\bea\WLSERV~1.0/common/p13n/db/oracle/jdbc_index/jdbc.index,C:\bea\WLSERV~1.0/cm/db/oracle/jdbc_index/jdbc.index,C:\bea\WLSERV~1.0
/portal/db/oracle/jdbc_index/jdbc.index
java driver=oracle.jdbc.driver.OracleDriver
java saltFile=C:\bea\user_projects\domains\VenkatDomain/security/SerializedSystemIni.dat
java prodDir=C:\bea\WLSERV~1.0
java Processing file 'C:\bea\WLSERV~1.0\common\p13n\db\oracle\jdbc_index\jdbc.index'
java Files=
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/seq_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/er_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/er_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/er_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/er_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/bt_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/bt_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/bt_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/bt_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/seq_create_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n_create_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n_create_triggers.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/data/required/p13n_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/er_create_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/er_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/er_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/er_create_triggers.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/data/required/er_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/bt_create_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/bt_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/bt_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/bt_create_triggers.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/data/required/bt_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/data/required/bt9_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n9_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n9_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n9_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n9_create_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n9_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/data/required/p13n9_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n102_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/oracle/p13n102_create_tables.sql
java file:/C:/bea/WLSERV~1.0/common/p13n/db/data/required/p13n102_insert_system_data.sql
java Processing file 'C:\bea\WLSERV~1.0\cm\db\oracle\jdbc_index\jdbc.index'
java Files=
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm10_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv10_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm9_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm9_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm9_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm9_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv9_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm_create_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm_create_triggers.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv_create_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv_create_triggers.sql
java file:/C:/bea/WLSERV~1.0/cm/db/data/required/cmv_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm9_create_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm9_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm9_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm9_create_triggers.sql
java file:/C:/bea/WLSERV~1.0/cm/db/data/required/cm9_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv9_create_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv9_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/cm/db/data/required/cm_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/cm/db/data/sample/cm_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm10_create_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv10_create_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cmv102_create_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/oracle/cm102_create_tables.sql
java file:/C:/bea/WLSERV~1.0/cm/db/data/sample/cm102_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/cm/db/data/sample/cm102_update_system_data.sql
java Processing file 'C:\bea\WLSERV~1.0\portal\db\oracle\jdbc_index\jdbc.index'
java Files=
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/wps_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/wps_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/wps_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/wps_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/comm_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/comm_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/comm_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/comm_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf10_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf10_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf9_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf9_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf9_drop_views.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf9_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_drop_views.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_drop_fkeys.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_drop_indexes.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_drop_constraints.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_drop_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/wps_create_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/wps_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/wps_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/wps_create_triggers.sql
java file:/C:/bea/WLSERV~1.0/portal/db/data/required/wps_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_create_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_create_views.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf_create_triggers.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/comm_create_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/comm_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/comm_create_indexes.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/comm_create_triggers.sql
java file:/C:/bea/WLSERV~1.0/portal/db/data/required/comm_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf9_drop_columns.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf9_create_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf9_create_fkeys.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf9_create_views.sql
java file:/C:/bea/WLSERV~1.0/portal/db/data/required/pf_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/portal/db/data/required/pf9_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/portal/db/data/required/bt_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/portal/db/data/required/bt9_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf10_create_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/data/required/pf10_insert_system_data.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf102_create_tables.sql
java file:/C:/bea/WLSERV~1.0/portal/db/oracle/pf102_drop_tables.sql
java Error = SQLException when executing file file:/C:/bea/WLSERV~1.0/portal/db/data/required/pf_insert_system_data.sql
java java.lang.Exception: SQLException when executing file file:/C:/bea/WLSERV~1.0/portal/db/data/required/pf_insert_system_data.sql
java at com.bea.plateng.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:182)
java at com.bea.plateng.domain.jdbc.JDBCDataLoader.main(JDBCDataLoader.java:1320)
java Caused by: java.sql.SQLException: ORA-00942: table or view does not exist
java at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
java at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
java at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
java at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
java at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
java at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:946)
java at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)
java at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1614)
java at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1579)
java at com.bea.plateng.domain.jdbc.JDBCDataLoader.loadData(JDBCDataLoader.java:748)
java at com.bea.plateng.domain.jdbc.JDBCDataLoader.load(JDBCDataLoader.java:166)
java ... 1 more
java Load Failed
BUILD FAILED
C:\bea\WLSERV~1.0\common\p13n\db\build_createdatabase.xml:17: The following error occurred while executing this line:
C:\bea\WLSERV~1.0\common\p13n\db\build_createdatabase.xml:90: The following error occurred while executing this line:
C:\bea\WLSERV~1.0\common\p13n\db\build_createdatabase.xml:97: The following error occurred while executing this line:
C:\bea\WLSERV~1.0\common\p13n\db\build_createdatabase.xml:62: Java returned: -1
Total time: 3 minutes 55 seconds
I tried debugging the problem, and found that the table "PF_MARKUP_XML" was not created, the create script of that table is in the "pf_create_tables.sql" file. When I tried to manually execute the specific create script for that table it was executed successfully, and the table was created. So I dont know what is the problem then.
Any help on this would be highly appreciated.
Thanks,Hi,
not sure which version of WLP you are running, but take a look at [http://edocs.bea.com/wlp/docs92/db/oracle.html|http://edocs.bea.com/wlp/docs92/db/oracle.html]:
"Note: A WebLogic Portal Oracle database user that has DBA privileges causes database create errors and upgrade issues. Before you create database objects or perform an upgrade, you should revoke the Oracle user's DBA privileges and replace them with the following privileges: GRANT CREATE TABLE, CREATE VIEW, CREATE TRIGGER, CREATE SEQUENCE, CREATE SESSION, UNLIMITED TABLESPACE TO <<WEBLOGIC>>."
If the DB user you were using had DBA privileges then maybe this was the reason for your problem?
Seems to be still valid even for 10.2.
Hope this helps.
Cheers,
Petri -
Hi:
I' have been getting this error message:
Command> alter cache group SNAPSHOT_ADMIN.SOP_CCATALOGOS_CG
set autorefresh state on;5062: gv$session could not be found on Oracle. Check that snapshot_admin has SELECT privileges on gv$session
The command failed.
Command> call ttcachestop;
Command> call ttcachestart;
Command> alter cache group SNAPSHOT_ADMIN.SOP_CCATALOGOS_CG set autorefresh state on;
5062: gv$session could not be found on Oracle. Check that snapshot_admin has SELECT privileges on gv$session
The command failed.
Command> call ttcachestop;
Command> alter cache group SNAPSHOT_ADMIN.SOP_CCATALOGOS_CG set autorefresh state on;
5062: gv$session could not be found on Oracle. Check that snapshot_admin has SELECT privileges on gv$session
The command failed.
Command>
The whole history is that this cache groups was working good, yesterday I added a column to a different cache group, so I stoped cache agent in order to regenerate the cache group to be modified. After that I restarted the cache agent.
Today the cache group called SOP_CCATALOGOS_CG was not refreshing, so I tried setting it to off and after set it to on, but I received that error message. On error file I got this:
11:31:35.44 Err : ORA: 19661: ora-19661-0013-refresh07296: TimesTen error code:5
901, msg The Oracle refresh log table, "SNAPSHOT_ADMIN"."TT_03_59558_L", for bas
e table, SNAPSHOT_ADMIN.SOP_CCATALOGOS, cannot be found.
11:31:35.44 Err : ORA: 19661: ora-19661-0013-fresher01578: Autorefresh failed fo
r cache groups with interval 60000 ms.
Please help me, I will free this application soonHi,
It looks like someone has either revoked (in Oracle) some privileges from whatever user you are using or someone has dropped the TT tracking table in Oracle.
I'd check both of these to see which it is...
Chris -
Oracle users and revoking privileges
Hello,
To test out some error conditions in an application, I'd like to temporarily revoke a privilege on a table from a database user.
I am trying to do that, logged into SQL*Plus as "sys" or "system", and running the command:
REVOKE UPDATE ON USERX.TABLE_A FROM USERX;
However, this is failing with the following message:
ORA-01927: cannot REVOKE privileges you did not grant
I've also tried logging into my server as oracle, typing "sqlplus /nolog" at the command line, then "connect internal as sysdba;" from the SQL*Plus prompt, and then running the REVOKE command, but that results in the same error message.
So basically my question is: if neither the "sys" nor the "system" user is able to revoke the privilege from the "userx" user (because they did not specifically grant it), how would I determine which oracle user would be able to do this? Or how else would I go about revoking the privilege?
I'm running Oracle8i Enterprise Edition Release 8.1.6.1.0 on Linux.
Thanks for your help with this. I am not very familiar with Oracle DBA concepts.Hello,
I am fully agree with Eric....Yes! a User created a table means...the User is OWNER of the table....and that means......the User is by default having the privilege of DML operations...i belive...OK
And the privilege which you have not granted...then how could you revoke them...Whether it may b e SYS or SYSTEM or for that matter any User a/c.
If you really want to restrict the restrict option on table owned by your User, then i can suggest to put a Schema Level Trigger on DML action. This will be fired when update in invoked on table by the user and there you can have your STOP mechanism.....BUT..this is not really suggested.
Regards,
Kamesh Rastogi
Oracle - DBA -
Oracle recommends that you revoke EXECUTE privileges on powerful packages f
Oracle recommends that you revoke EXECUTE privileges on powerful packages from PUBLIC
Got on error on the home page of Enterprise Manager and read that I should run the code below to correct the problem, but when I click on the link at the bottom of EM to go to iSQL*Plus and choose to connect as sysdba I get a popup asking for me to input a password for my computer so I tried my local computer username and password, my network username and password and even my database username and password and neither lets me in. I can login under Normal but then I do not have rights to execute the command.
revoke execute on utl_file from public;
I know I have my computer username and password correct because I had to enter it to shutdown the database yesterday.
And I had a problem with my listener not knowing the SID, but the error has since went away, but I do have an error on my listener saying
Disk Utilization for 0 C: is 151.45%
Edited by: jamesH2 on Aug 29, 2008 9:20 AMHi James,
Where you saw that Oracle recommend that? If you are refering to the Db console recomendations please take a look on this note also: Note:343620.1
If you revoke any privilege from PUBLIC it becomes your own responsibility
to ascertain that all your applications will keep working. The same goal can often be accomplished
by replacing the privileges formerly granted to PUBLIC to some individual users or
roles.
Please take a look on this Metalink Note: 247093.1 Be Cautious When Revoking Privileges Granted to PUBLIC
Regards,
Francisco Munoz Alvarez
www.oraclenz.com
Edited by: F. Munoz Alvarez on Aug 30, 2008 1:31 AM -
Hi ALL,
When we revoke a user permission say:
REVOKE CREATE TABLE,
ALTER TABLESPACE,
UNLIMITED TABLESPACE,
FORCE TRANSACTION
FROM temp_user;/
Its sets the tablespace value to zero for the all the tablespace for which the temp_user has permission.
This behaviors is observed only on oracle 11G. Please let us know is there any release fix this issue..
Thanks
Gopi
Edited by: 929853 on Apr 24, 2012 6:53 AM
Edited by: 929853 on Apr 24, 2012 7:22 AMPlease let us is there any path release fix this issue..
-
I am new to using Oracle, and I am trying to create an add/insert stored pr
I am new to using Oracle, and I am trying to create an add/insert stored procedure for a table. The PROD_CD and PLAN_CD fields in my table can have no value (empty or null) Can you please check my code and let me know what I am doing wrong?
Table definition:
CREATE TABLE DCWEB.USER_PLAN_PREFERENCE
USERID VARCHAR2(40) NOT NULL,
PROD_CD VARCHAR2(9) NULL,
PLAN_CD VARCHAR2(9) NULL,
STATE_LST VARCHAR2(2) NOT NULL,
STATE_NM VARCHAR2(40) NOT NULL,
LST_UPDATE_TS TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL
ALTER TABLE DCWEB.USER_PLAN_PREFERENCE
ADD CONSTRAINT USER_PLAN_PREFERENCE_XPK PRIMARY KEY (USERID, PROD_CD, PLAN_CD);
-- Grant/Revoke object privileges
grant select, insert, update, delete on DCWEB.USER_PLAN_PREFERENCE to HIGGIB1;
Stored Procedure Definition:
procedure setUserPlanPref (
userid in varchar2,
prod_cd in varchar2,
plan_cd in varchar2,
state_lst in varchar2,
state_nm in varchar2
is
currentTimestamp timestamp := current_timestamp;
begin
insert into user_plan_preference (userid, prod_cd, plan_cd, state_lst, state_nm, lst_update_ts)
values (upper(userid), upper(prod_cd), upper(plan_cd), upper(state_lst), upper(state_nm), currentTimestamp);
commit;
exception
when dup_val_on_index then
begin
update user_plan_preference up set
up.userid = upper(userid),
up.prod_cd = upper(prod_cd),
up.plan_cd = upper(plan_cd),
up.state_lst = upper(state_lst),
up.state_nm = upper(state_nm),
up.lst_update_ts = currentTimestamp
where up.userid = upper(userid)
and up.prod_cd = upper(prod_cd)
and up.plan_cd = upper(plan_cd);
commit;
exception
when others then
rollback;
end;
when others then
rollback;
end;
end;
INPUT DATA
I am unable to insert a record calling the stored procedure with values: DCWEB4578, , 2P, CA, CALIFORNIA but when I change to the string "NULL", the insert succeeds. When I try to call the stored procedure to update the inserted record with values: DCWEB4578, "NULL", 2P, CO, COLORODO the update does not happen since I still see the original record in the table. Please advise. Thanks in advance for your help.938319 wrote:
I am new to using OracleWelcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and ensure you've updated your profile with a real handle instead of "938319".
You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s)
With APEX we're fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
Thanks for posting the complete code, it makes it so much easier to understand the problem, but always post code wrapped in tags<tt>\...\</tt> tags to preserve formatting and special characters.
and I am trying to create an add/insert stored procedure for a table.Does this have anything to do with APEX, for which this is the forum? General SQL & PL/SQL matters should be directed to the {forum:id=75} forum.
The PROD_CD and PLAN_CD fields in my table can have no value (empty or null) Can you please check my code and let me know what I am doing wrong?This:
commit;
exception
when others then
rollback;
end;
when others then
rollback;Remove it all.
Commits should be issued by end user/client software on completion of a transaction. This means <tt>commit;</tt> should almost never appear in PL/SQL code. The main exception to this is in <tt>dbms_job/secheduler</tt> scheduled processes that have no client or UI. If this code is executed from APEX, then APEX issues more than enough commits anyway.
exceptions are just a way of ensuring your code is buggy.<tt>when others</tt> exceptions are just a way of ensuring your code is buggy.
INPUT DATA
I am unable to insert a record calling the stored procedure with values: DCWEB4578, , 2P, CA, CALIFORNIA but when I change to the string "NULL", the insert succeeds. When I try to call the stored procedure to update the inserted record with values: DCWEB4578, "NULL", 2P, CO, COLORODO the update does not happen since I still see the original record in the table. Please advise. Thanks in advance for your help.With the <tt>commit</tt>s and <tt>when others...</tt> removed from the code you'll have a chance of seeing what's actually happening. Note that the entire procedure can be simplified by writing as a MERGE</tt> statement. -
How to disable a table in oracle?
Hi,
Can anyone tell me if its possible to disable table in oracle>
Thanks and Regardsuser598986 wrote:
Hi,
There is a scenario where :
Schema A has A_ and B_ tables
If I login to Schema A only A_ will have the access rights tables with B_ will not have access to the user.
If Schema A owns both the tables than there is no way to do what you have mentioned. An owner can do whatever he wants to do with his objects. If the table B has been "given" to the user A than from the grantor, revoke the privs of this table and it won't be accessible to the user A, the same what Laura has mentioned to do already. You can't "switch off" a table from the user AFAIK.
HTH
Aman.... -
How to create a QUEUE in Oracle XE
Hi everybody,
Can some1 tell what r d steps i need to follow in order to create a queue in Oracle XE database
ThanksI have copied your code here and commented it inline.
1.Logged in as sysdba
create user aquser identified by password;
GRANT CONNECT, RESOURCE to aquser;
-- Never grant connect or resource. These are demo roles and the definition changes in different versions.
-- The connect role should be replaced with GRANT CREATE SESSION.
GRANT EXECUTE ON SYS.DBMS_AQ to aquser;
GRANT EXECUTE ON SYS.DBMS_AQADM to aquser;
GRANT EXECUTE ON SYS.DBMS_AQIN to aquser;
commit;
-- commit is unnecessary and with DCL does nothing as DCL contains two implicit commits.
I have also given him dba privileges
-- why? this is a breach of essentially all reasonable security protocols. Revoke this and provide only the minimum
-- explicit system privileges required to perform the user function. The required privs are described in detail in the
-- Oracle docs and also on my website in the demo I provided to you previously.
-- http://www.morganslibrary.org/reference/aq_demo1.html
2. Then i created the type(logged in as aquser)
create or replace type customer_type as object
name varchar2(100),
location varchar2(50),
contract CLOB
The type is created.
3.Then i tried to create the queue
begin
dbms_aqadm.create_queue_table('customer_in_table', 'aquser.customer_type');
-- your table name will be CUSTOMER_IN_TABLE
-- your payload type is CUSTOMER_TYPE
-- and you did not provide any values for the remaining 11 parameters.
dbms_aqadm.create_queue('customer_in_queue', 'customer_in_table');
-- your queue name is CUSTOMER_IN_QUEUE
-- your table_name is the same as created previously
-- and you did not provide any values for the remaining 7 parameters.
dbms_aqadm.start_queue('customer_in_queue');
end;From this I see no possibility that you received the exception you posted so something you did does not correspond with what you posted.
Here is the error message you posted:
cannot create QUEUE_TABLE, user ANONYMOUS does not have execute privileges on QUEUE_PAYLOAD_TYPE ANDY.STREET_INFOThe user AQUSER is not the user ANONYMOUS. -
Oracle Security : what do you think about the following policy violation ?
If you install OEM10, you will be able to see if you violate some security guidelines :
Interresting is revoking UTL_FILE from public, which is critical. Also revoke UTL_TCP and UTL_SMTP. This is going to upset an expert I know...
Take care about the failed login attempts. If you set it to 10 to the default profile, and if your DBSNMP password is NOT the default password, then Oracle will lock your account after node discovery!
In Solaris, you can disable execution of the user stack with the system parameters set noexec_user_stack=1
set noexec_user_stack_log=1. I did not find how to do it on AIX. However, those settings may have side effects.
About the ports, it complains about open ports, even if this is the port oracle listener is using! Simply ignore most of the violations there.
About JAccelerator (NCOMP), it is located on the "companion" CD.
Ok, Waiting for your feedback
Regards
Laurent
[High] Critical Patch Advisories for Oracle Homes Configuration Host Checks Oracle Homes for missing critical patches
[High] Insufficient Number of Control Files Configuration Database Checks for use of a single control file
[High] Open ports Security Host Check for open ports
[High] Remote OS role Security Database Check for insecure authentication of remote users (remote OS role)
[High] EXECUTE UTL_FILE privileges to PUBLIC Security Database Test for PUBLIC having EXECUTE privilege on the UTIL_FILE package
[High] Listener direct administration Security Listener Ensure that listeners cannot be administered directly
[High] Remote OS authentication Security Database Check for insecure authentication of remote users (remote OS authentication)
[High] Listener password Security Listener Test for password-protected listeners
[High] HTTP Server Access Logging Security HTTP Server Check that HTTP Server access logging is enabled
[High] Web Cache Access Logging Security Web Cache Check that Web Cache access logging is enabled
[High] Web Cache Dummy wallet Security Web Cache Check that dummy wallet is not used for production SSL load.
[High] HTTP Server Dummy wallet Security HTTP Server Check that dummy wallet is not used for production SSL load.
[High] Web Cache owner and setuid bit' Security Web Cache Check that webcached binary is not owned by root and setuid is not set
[High] HTTP Server Owner and setuid bit Security HTTP Server Check the httpd binary is not owned by root and setuid bit is not set.
[High] HTTP Server Directory Indexing Security HTTP Server Check that Directory Indexing is disabled on this HTTP Server
[High] Insufficient Redo Log Size Storage Database Checks for redo log files less than 1 Mb
[Medium] Insufficient Number of Redo Logs Configuration Database Checks for use of less than three redo logs
[Medium] Invalid Objects Objects Database Checks for invalid objects
[Medium] Insecure services Security Host Check for insecure services
[Medium] DBSNMP privileges Security Database Check that DBSNMP account has sufficient privileges to conduct all security tests
[Medium] Remote password file Security Database Check for insecure authentication of remote users (remote password file)
[Medium] Default passwords Security Database Test for known accounts having default passwords
[Medium] Unlimited login attempts Security Database Check for limits on the number of failed logging attempts
[Medium] Web Cache Writable files Security Web Cache Check that there are no group or world writable files in the Document Root directory.
[Medium] HTTP Server Writable files Security HTTP Server Check that there are no group or world writable files in the Document Root directory
[Medium] Excessive PUBLIC EXECUTE privileges Security Database Check for PUBLIC having EXECUTE privileges on powerful packages
[Medium] SYSTEM privileges to PUBLIC Security Database Check for SYSTEM privileges granted to PUBLIC
[Medium] Well-known accounts Security Database Test for accessibility of well-known accounts
[Medium] Execute Stack Security Host Check for OS config parameter which enables execution of code on the user stack
[Medium] Use of Unlimited Autoextension Storage Database Checks for tablespaces with at least one datafile whose size is unlimited
[Informational] Force Logging Disabled Configuration Database When Data Guard Broker is being used, checks primary database for disabled force logging
[Informational] Not Using Spfile Configuration Database Checks for spfile not being used
[Informational] Use of Non-Standard Initialization Parameters Configuration Database Checks for use of non-standard initialization parameters
[Informational] Flash Recovery Area Location Not Set Configuration Database Checks for flash recovery area not set
[Informational] Installation of JAccelerator (NCOMP) Installation Database Checks for installation of JAccelerator (NCOMP) that improves Java Virtual Machine performance by running natively compiled (NCOMP) classes
[Informational] Listener logging status Security Listener Test for logging status of listener instances
[Informational] Non-uniform Default Extent Size Storage Database Checks for tablespaces with non-uniform default extent size
[Informational] Not Using Undo Space Management Storage Database Checks for undo space management not being used
[Informational] Users with Permanent Tablespace as Temporary Tablespace Storage Database Checks for users using a permanent tablespace as the temporary tablespace
[Informational] Rollback in SYSTEM Tablespace Storage Database Checks for rollback segments in SYSTEM tablespace
[Informational] Non-System Data Segments in System Tablespaces Storage Database Checks for data segments owned by non-system users located in tablespaces SYSTEM and SYSAUX
[Informational] Users with System Tablespace as Default Tablespace Storage Database Checks for non-system users using SYSTEM or SYSAUX as the default tablespace
[Informational] Dictionary Managed Tablespaces Storage Database Checks for dictionary managed tablespaces (other than SYSTEM and SYSAUX)
[Informational] Tablespaces Containing Rollback and Data Segments Storage Database Checks for tablespaces containing both rollback (other than SYSTEM) and data segments
[Informational] Segments with Extent Growth Policy Violation Storage Database Checks for segments in dictionary managed tablespaces (other than SYSTEM and SYSAUX) having irregular extent sizes and/or non-zero Percent Increase settingsInterresting is revoking UTL_FILE from public, which is critical. Also revoke UTL_TCP and UTL_SMTP. This is going to upset an expert I know...Okay, as this is (I think) aimed at me, I'll fall for it ;)
What is the point of revoking UTL_FILE from PUBLIC? Yes I know what you think the point is, but without rights on an Oracle DIRECTORY being able to execute UTL_FILE is useless. Unless of course you're still using the init.ora parameter
UTL_FILE_DIR=*which I sincerely hope you're not.
As for UTL_SMTP and UTL_TCP, I think whether a program is allowed to send e-mail to a given SMTP server is really in the remit of the e-mail adminstrator rather than the DBA.
Look, DBAs are kings of their realm and can set their own rules. The rest of us have to live with them. A couple of years ago I worked a project where I was not allowed access to the USER_DUMP_DEST directory. So every time I generated a TRC file I had to phone up the DBA and a couple of hours later I got an e-mail with an attachment. Secure yes, but not very productive when I was trying to debug a Row Level Security implementation.
I have worked on both sides of the DBA/Developer fence and I understand both sides of the argument. I think it is important for developers to document all the privileges necessary to make their app run. Maybe you don't have a better way of doing that than revoking privileges from PUBLIC. Or maybe you just want to generate additional communication with developers. That's fine. I know sometimes even DBAs get lonely.
Cheers, APC -
How to create table in Oracle 9i of name USER
To whom so ever forum member,
Please help me for creating table in Oracle 9i with the table name USER, though i know that it's reserve word for the Oracle DB
Please give me the query if any for the same.
Thanks in advance for timely help.
Kiran.CREATE USER user-name IDENTIFY BY password
user-name
The name of the user to be created. The name is an identifier with a maximum of 30 characters. Note that if support for delimited identifiers is on and the user name begins with an underscore, you must place the user name in quotation marks.
various identifiers possible
simple-identifier ::= identifier-start { identifier-part }
identifier-start ::= letter | % | _
identifier-part ::= letter | number | _ | @ | # | $
delimited-identifier ::= " delimited-identifier-part { delimited-identifier-part } "
delimited-identifier-part ::= non-double-quote-character | double-quote-symbol
double-quote-symbol ::= ""
An identifier cannot be a SQL reserved word.
An identifier may be either a simple identifier or a delimited identifier.
password
The password of the user to be created.
the reserved words are:
%AFTERHAVING | %ALPHAUP | %ALTER | %ALTER_USER | %BEGTRANS |
%CHECKPRIV | %CREATE_ROLE | %CREATE_USER | %DBUGFULL |
%DELDATA | %DESCRIPTION | %DROP_ANY_ROLE | %DROP_USER |
%EXACT | %EXTERNAL | %FILE | %FOREACH | %FULL |
%GRANT_ANY_PRIVILEGE | %GRANT_ANY_ROLE | %INORDER |
%INTERNAL | %INTEXT | %INTRANS | %INTRANSACTION | %MCODE |
%NOCHECK | %NODELDATA | %NOINDEX | %NOLOCK | %NOTRIGGER |
%NUMROWS | %ODBCOUT | %ROUTINE | %ROWCOUNT | %STARTSWITH |
%STRING | %THRESHOLD | %UPPER |
ABSOLUTE | ACTION | ADD | ALL | ALLOCATE | ALTER | AND |
ANY | ARE | AS | ASC | ASSERTION | AT | AUTHORIZATION | AVG |
BEGIN | BETWEEN | BIT | BIT_LENGTH | BOTH | BY | CASCADE |
CASE | CAST | CATALOG | CHAR | CHARACTER | CHARACTER_LENGTH |
CHAR_LENGTH | CHECK | CLOSE | COALESCE | COBOL | COLLATE |
COLLATION | COLUMN | COMMIT | CONNECT | CONNECTION |
CONSTRAINT | CONSTRAINTS | CONTINUE | CONVERT |
CORRESPONDING | COUNT | CREATE | CROSS | CURRENT |
CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMP |
CURRENT_USER | CURSOR | DATE | DAY | DEALLOCATE | DEC |
DECIMAL | DECLARE | DEFAULT | DEFERRABLE | DEFERRED |
DELETE | DESC | DESCRIBE | DESCRIPTOR | DIAGNOSTICS |
DISCONNECT | DISTINCT | DOMAIN | DOUBLE | DROP | ELSE |
END | ENDEXEC | ESCAPE | EXCEPT | EXCEPTION | EXEC |
EXECUTE | EXISTS | EXTERNAL | EXTRACT | FALSE | FETCH |
FILE | FIRST | FLOAT | FOR | FOREIGN | FORTRAN | FOUND |
FROM | FULL | GET | GLOBAL | GO | GOTO | GRANT | GROUP |
HAVING | HOUR | IDENTITY | IMMEDIATE | IN | INDICATOR |
INITIALLY | INNER | INPUT | INSENSITIVE | INSERT | INT |
INTEGER | INTERSECT | INTERVAL | INTO | IS | ISOLATION |
JOIN | KEY | LANGUAGE | LAST | LEADING | LEFT | LEVEL |
LIKE | LOCAL | LOWER | MATCH | MAX | MIN | MINUTE |
MODULE | MONTH | NAMES | NATIONAL | NATURAL | NCHAR |
NEXT | NO | NOT | NULL | NULLIF | NUMERIC | OCTET_LENGTH |
OF | ON | ONLY | OPEN | OPTION | OR | ORDER | OUTER |
OUTPUT | OVERLAPS | PAD | PARTIAL | PASCAL | PLI |
POSITION | PRECISION | PREPARE | PRESERVE | PRIMARY |
PRIOR | PRIVILEGES | PROCEDURE | PUBLIC | READ | REAL |
REFERENCES | RELATIVE | RESTRICT | REVOKE | RIGHT | ROLE |
ROLLBACK | ROWS | SCHEMA | SCROLL | SECOND | SECTION |
SELECT | SESSION_USER | SET | SIZE | SMALLINT | SOME |
SPACE | SQL | SQLCODE | SQLERROR | SQLSTATE | SUBSTRING |
SUM | SYSTEM_USER | TABLE | TEMPORARY | THEN | TIME |
TIMESTAMP | TIMEZONE_HOUR | TIMEZONE_MINUTE | TO |
TRAILING | TRANSACTION | TRANSLATE | TRANSLATION | TRIM |
TRUE | UNION | UNIQUE | UNKNOWN | UPDATE | UPPER | USAGE |
<br>
USER |
<br>
USING | VALUE | VALUES | VARCHAR | VARYING | VIEW |
WHEN | WHENEVER | WHERE | WITH | WORK | WRITE | YEAR |
ZONE
hope it helps ...
roli -
Problem with revoking accounts on deprovisioned Date
Hello,
I am setting the De-provisioning date for a user manually from UI to the current date(tried with yesterday's date too). After I submit, I ran the "Set User Deprovisioned Date" Job. It has updated the user deprovisioned date field, but the user's accounts are still in "Provisioned" status.
Is there any other job that needs to be executed after this to revoke the accounts? or "Set User Deprovisioned Date" Job will revokes the account also along with setting the deprovisioned date.(which somehow is no happening in my case.)
Thanks
sjitYou haven't mentioned the version but for 11.1.1.5 you can get it here:
http://docs.oracle.com/cd/E21764_01/doc.1111/e14308/scheduler.htm#BABECJFD
Also the jar would be OIMServer.jar or xlScheduler.jar
-Bikash -
Dba_users_with_defpwd in Oracle 11G
dba_users_with_defpwd view in Oracle 11G provides list of User ids which have default passwords.
My question is any user who has select_catalog_role might be able to access this view
and that user can review all the users whose password is default.
Wont it be a risk as now we expose more information to all users who has access to this view???
Do we have to revoke access to this view from non-dba users??
Thank You
GiridharAman,
I posted this question during week end and when i came back to work, i wanted to check how to avoid this problem.
When i ran a quick test, i found select_catalog_role dont get select privilege on DBA_USERS_WITH_DEFPWD.
Only SELECT ANY DICTIONARY is getting this privilege.
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Solaris: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> create user testuser identified by testuser;
User created.
SQL> grant create session to testuser;
Grant succeeded.
SQL> grant select_catalog_role to testuser;
Grant succeeded.
SQL> select * from dba_users_with_defpwd ;
USERNAME
XDB
MDSYS
EXFSYS
SI_INFORMTN_SCHEMA
DIP
ORDSYS
SCOTT
WMSYS
WK_TEST
CTXSYS
MDDATA
USERNAME
ORDPLUGINS
OUTLN
13 rows selected.
SQL> connect testuser/testuser
Connected.
SQL> show user
USER is "TESTUSER"
SQL> select * from dba_users_with_defpwd ;
select * from dba_users_with_defpwd
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> connect / as sysdba
Connected.
SQL> grant select any dictionary to testuser;
Grant succeeded.
SQL> connect testuser/testuser
Connected.
SQL> select * from dba_users_with_defpwd ;
USERNAME
XDB
MDSYS
EXFSYS
SI_INFORMTN_SCHEMA
DIP
ORDSYS
SCOTT
WMSYS
WK_TEST
CTXSYS
MDDATA
USERNAME
ORDPLUGINS
OUTLN
13 rows selected.
SQL> connect / as sysdba
Connected.
SQL> drop user testuser;
User dropped.
SQL>
Thanks,
Giridhar -
Oracle reserved and non-reserved keywords
Hello,
I'm looking for a list of reserved and non-reserved keywords for all Oracle versions starting from 9.
I think Oracle starts at R1, right? So the versions needed would be:
9.1, 9.2
10.1, 10.2 and
11.1
I found lists of keywords querying Oracle view V$RESERVED_WORDS
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2048.htm#REFRN30204
here:
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/ap_keywd.htm
However, this is only for version 10.2 and it contains only reserved keywords.
I need a list for every maintenance/minor version. This list must contain all keywords in Oracle PL/SQL, not just the reserved ones, but also those which shouldn't be used in certain contexts described by the V$RESERVED_WORDS view (former link) -> probably reserved = 'N'.
Since I don't own a copy of Oracle and definitely not of every minor version, does anyone know where to obtain such lists?
You might want to do me a favor and query that view for me... ;-) (you can send the output to "k w u t z k e AT w e b DOT d e" ... don't forget to mention the version)
From what the view tells me, the SQL statements to query are:
For reserved words:
select keyword from v$reserved_words where reserved='Y' order by keyword;
For all other non-reserved words:
select keyword from v$reserved_words where reserved='N' order by keyword;
Are there any keywords/entities that are neither reserved='Y' nor reserved='N'?
Can anyone help on this issue please?
TIA,
KarstenNot sure about differences between specific versions but the easy way to get reserved words is in SQL*Plus...
SQL> help reserved words
RESERVED WORDS (PL/SQL)
PL/SQL Reserved Words have special meaning in PL/SQL, and may not be used
for identifier names (unless enclosed in "quotes").
An asterisk (*) indicates words are also SQL Reserved Words.
ALL* DESC* JAVA PACKAGE SUBTYPE
ALTER* DISTINCT* LEVEL* PARTITION SUCCESSFUL*
AND* DO LIKE* PCTFREE* SUM
ANY* DROP* LIMITED PLS_INTEGER SYNONYM*
ARRAY ELSE* LOCK* POSITIVE SYSDATE*
AS* ELSIF LONG* POSITIVEN TABLE*
ASC* END LOOP PRAGMA THEN*
AT EXCEPTION MAX PRIOR* TIME
AUTHID EXCLUSIVE* MIN PRIVATE TIMESTAMP
AVG EXECUTE MINUS* PROCEDURE TIMEZONE_ABBR
BEGIN EXISTS* MINUTE PUBLIC* TIMEZONE_HOUR
BETWEEN* EXIT MLSLABEL* RAISE TIMEZONE_MINUTE
BINARY_INTEGER EXTENDS MOD RANGE TIMEZONE_REGION
BODY EXTRACT MODE* RAW* TO*
BOOLEAN FALSE MONTH REAL TRIGGER*
BULK FETCH NATURAL RECORD TRUE
BY* FLOAT* NATURALN REF TYPE
CHAR* FOR* NEW RELEASE UI
CHAR_BASE FORALL NEXTVAL RETURN UNION*
CHECK* FROM* NOCOPY REVERSE UNIQUE*
CLOSE FUNCTION NOT* ROLLBACK UPDATE*
CLUSTER* GOTO NOWAIT* ROW* USE
COALESCE GROUP* NULL* ROWID* USER*
COLLECT HAVING* NULLIF ROWNUM* VALIDATE*
COMMENT* HEAP NUMBER* ROWTYPE VALUES*
COMMIT HOUR NUMBER_BASE SAVEPOINT VARCHAR*
COMPRESS* IF OCIROWID SECOND VARCHAR2*
CONNECT* IMMEDIATE* OF* SELECT* VARIANCE
CONSTANT IN* ON* SEPERATE VIEW*
CREATE* INDEX* OPAQUE SET* WHEN
CURRENT* INDICATOR OPEN SHARE* WHENEVER*
CURRVAL INSERT* OPERATOR SMALLINT* WHERE*
CURSOR INTEGER* OPTION* SPACE WHILE
DATE* INTERFACE OR* SQL WITH*
DAY INTERSECT* ORDER* SQLCODE WORK
DECIMAL* INTERVAL ORGANIZATION SQLERRM WRITE
DECLARE INTO* OTHERS START* YEAR
DEFAULT* IS* OUT STDDEV ZONE
DELETE* ISOLATION
RESERVED WORDS (SQL)
SQL Reserved Words have special meaning in SQL, and may not be used for
identifier names unless enclosed in "quotes".
An asterisk (*) indicates words are also ANSI Reserved Words.
Oracle prefixes implicitly generated schema object and subobject names
with "SYS_". To avoid name resolution conflict, Oracle discourages you
from prefixing your schema object and subobject names with "SYS_".
ACCESS DEFAULT* INTEGER* ONLINE START
ADD* DELETE* INTERSECT* OPTION* SUCCESSFUL
ALL* DESC* INTO* OR* SYNONYM
ALTER* DISTINCT* IS* ORDER* SYSDATE
AND* DROP* LEVEL* PCTFREE TABLE*
ANY* ELSE* LIKE* PRIOR* THEN*
AS* EXCLUSIVE LOCK PRIVILEGES* TO*
ASC* EXISTS LONG PUBLIC* TRIGGER
AUDIT FILE MAXEXTENTS RAW UID
BETWEEN* FLOAT* MINUS RENAME UNION*
BY* FOR* MLSLABEL RESOURCE UNIQUE*
CHAR* FROM* MODE REVOKE* UPDATE*
CHECK* GRANT* MODIFY ROW USER*
CLUSTER GROUP* NOAUDIT ROWID VALIDATE
COLUMN HAVING* NOCOMPRESS ROWNUM VALUES*
COMMENT IDENTIFIED NOT* ROWS* VARCHAR*
COMPRESS IMMEDIATE* NOWAIT SELECT* VARCHAR2
CONNECT* IN* NULL* SESSION* VIEW*
CREATE* INCREMENT NUMBER SET* WHENEVER*
CURRENT* INDEX OF* SHARE WHERE
DATE* INITIAL OFFLINE SIZE* WITH*
DECIMAL* INSERT* ON* SMALLINT*
SQL>If you haven't got oracle then I'm not sure where you're going to find out all the minor differences I'm afraid. -
Oracle AQ tables - 9i to 10g upgrade
We have Oracle AQ implemented in one of our application. Our database on the test environment recently went through an upgrade from 9i to 10g. Now when we deploy the application we are getting the following error:
Caused by: oracle.oc4j.admin.internal.DeployerException: Error initializing ejb-module; Exception Error in application mdo: Error loading package at file:/oc4j/oc4j10.1.2.0/j2ee/soc4j/applications/mdo/mdo.jar, Error deploying file:/oc4j/oc4j10.1.2.0/j2ee/soc4j/applications/mdo/mdo.jar homes: JMS Error: ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 5989
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_AQJMS", line 174
ORA-06512: at line 1
The user does have the execute privileges. A quick look at the queue table revealed that the table has changed significantly after the 9i to 10g database upgrade and that could be the reason we are seeing this error. Quick differences we are seeing are all columns with DATE datatype on 9i are now defined as TIMESTAMP(6) under 10g, and there is an additional column call user_prop of type SYS.ANYDATA.
Can somebody please confirm this ? I thought Oracle AQ will be backwards compatible and will be an abstract interface to the application but looks like its not. How do I get this issue resolved ?I suggest you revoke all the privileges and grant once again.
Privileges:-
GRANT EXECUTE ON DBMS_AQ TO User;
GRANT EXECUTE ON DBMS_AQADM TO User;
GRANT EXECUTE ON DBMS_AQJMS TO User;
GRANT EXECUTE ON DBMS_AQIN TO User;
Regards,
Sanjeev
Maybe you are looking for
-
24" Imac Horizontal Video Lines Video tearing
My 24" Intel Imac 216 GZ Core 2 Duo 3g ram is suffering from video anomalies (thin horizontal noise lines, Tear lines and moving windows leaves trailing repeats of the window.) Lines occur as early as the desktop at startup. Using Itunes or mail aggr
-
Regarding file naming convention(while publishing a file to FTP)
Hi, In one of our usecases, we need to configure the file name based on the client's requirement.(to place the file in FTP. But the file name should be customized by us.) We referred to the link given below. http://www.b2bgurus.com/2008/04/customizin
-
Date Function - Holiday?
Date Function - Holiday? ============== Hi Every body, We have date dimension, where we need to populate the USA Holiday such as "Thanks Giving" etc. We are looking to build an holiday table for it. Some one of this forum would have faced this situat
-
Hi, I'm very new to java - 2nd day. Trying to move from Visual FoxPro. In testing statements to learn java, I can't seem to get java.util.Scanner.nextInt or nextDouble ... etc. to wait for a keyborad input. Is there something I have to configure befo
-
Hi, I am having a problem in running SAAJ client for Axis running on Tomcat. My SAAJ code is as follows; SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance(); SOAPConnection connection = soapConnectionFactory.createConnec