Administer database trigger - ora-01031
hello,
I have problem with my trigger. I want change schema for users, witch logon on database. I put trigger in forms when I make new users and I now that this trigger is ok, but I get error ora-01031. I put privileges (administer database trigger)for user witch execute this trigger and I still get this error.
I heard that must by sys as sysdba but I don't think so.
any idea?
regards
You are right. I check this. thanks
This was good idea but, not work.
GRANT ALTER SESSION TO SCOTT;
If I log on to scott and I fire trigger I get this error ORA-01301.
another solutions? Maybe I make samphing wrong?
regards
Edited by: user515960 on 2010-06-25 09:43
I make this
GRANT CREATE ANY TRIGGER TO SCOTT; and now work. but I now that must be grant alter session too.
thank for all
Edited by: user515960 on 2010-06-25 10:12
Similar Messages
-
Database Error - ORA-01031 : insufficient privileges
hi
i am trying to create a custom folder, in Disco Admin 10.1.2.48.18
but i am getting the following error!
Database Error - ORA-01031 : insufficient privileges
regards
-PreethaVerify that you have select privs on the objects you are using in the custom folder
-
View with Instead of Trigger - ORA-01031
I am having trouble with a form based on a view that uses an instead of trigger.
When I attempt to update a complex view that uses instead of triggers in an APEX form, I get the following message:
ORA-20001: Error in DML: p_rowid=21388, ... ORA-01031: insufficient privileges
The view works correctly when updates are executed from SQL Plus.
The view "VW" is based on several tables in the application schema "X", which is parsed by APEX, and several tables in another schema "Z". I have explicitly granted select permission on the tables in schema "Z" to schema "X", but this doesn't resolve the error.
Any idea how to fix this problem? From reading other posts, it sounds like the only issue should be explicit grants on the tables in other schemas. I do not attempt to update the tables in schema "Z", and do not have update permissions to those tables.
Sinerely, JustinJustin,
you might try to grant the views to the FLOWS_xxxxx user, which performs the Apex processes.
Dik Dral -
Product Management :
Calling wf_event.raise from an after insert row trigger produces ORA-04092. This is exactly opposite from the supposed documented behavior.
Thanks in advance for your attention to this matter. Needless to say, raising business events from fundamental database activities like inserting & updating rows is critically important.
Version : 2.6.2 as distributed with 9iAS 9.0.2.0.1 on Win2K
Error message :
ORA-04092: cannot ROLLBACK in a trigger
ORA-06512: at "OWF_MGR.WF_EVENT", line 830
ORA-04092: cannot SET SAVEPOINT in a trigger
ORA-06512: at "OWF_MGR.WF_EVENT", line 451
ORA-06512: at "CASEINT.CG$AIR_FOLDERS", line 7
ORA-04088: error during execution of trigger 'CASEINT.CG$AIR_FOLDERS'
From the Oracle Workflow Guide :
"For environments such as database triggers or distributed
transactions that do not allow savepoints, the Workflow Engine
automatically traps Savepoint not allowed errors and defers
the execution of the activity to the background engine."The Business Event System and Workflow Engine are two different components, hence the documentation is actually
correct as it refers to the 'Workflow Engine' specifically.
A fix is currently being developed for the problem that you are encountering and will be included in Workflow Standalone
Version 2.6.3 (iAS 9.0.4).
There is also a Bug raised for this issue in Workflow 2.6.2 - Bug 2427354 - if you wish to escalate this then please contact
Oracle Support to raise a TAR against this Bug.
As a workaround in the meantime you could launch a deferred workflow process that raises the required event. -
ORA-01031: insufficient privileges for STARTUP/SHUTDOWN TRIGGERS
Hi,
I given these 2 privs to scott still i am getting ORA-01031
GRANT administer DATABASE TRIGGER TO scott;
grant create any trigger to scott;
CREATE OR REPLACE TRIGGER shut_db before shutdown on database
ERROR at line 1:
ORA-01031: insufficient privileges
anything i missed ?
Thanks
PrakashHi,
Can you try logout and login and try again?
i have 10.2.0.1 and it worked for me
As user SCOTT
TEST10.UTAC.COM.SG$SCOTT> CREATE OR REPLACE TRIGGER shut_db before shutdown on database
2 begin
3 null;
4 end;
5 /
CREATE OR REPLACE TRIGGER shut_db before shutdown on database
ERROR at line 1:
ORA-01031: insufficient privilegesOn another window with user SYS
TEST10.UTAC.COM.SG$SYS> GRANT administer DATABASE TRIGGER TO scott;
Grant succeeded.On the first window of SCOTT (did not logout and login)
TEST10.UTAC.COM.SG$SCOTT> CREATE OR REPLACE TRIGGER shut_db before shutdown on database
2 begin
3 null;
4 end;
5 /
Trigger created.Salman -
ORA-01031: insufficient privileges While Trying to Create a Trigger
Hi
I am trying to create a trigger on one of the table in the database schema :
CREATE OR REPLACE TRIGGER Trigger_Name
BEFORE INSERT ON table_name
FOR EACH ROW
---Trigger Body...
However I am getting the following error : ORA-01031: insufficient privileges
I have tried to check the status of the trigger with the following script :
SELECT object_name
FROM dba_objects
WHERE object_type = 'TRIGGER'
AND status = 'INVALID';
and it is showing its status as "INVALID".
Can anybody please suggest me how to proceed on this?Hi,
If the trigger exists than you have privilieges to create trigger but you need some privilieges needed to compile it.
Check all commands and objects you are referring to inside trigger body. Maybe you are trying select table without proper priviliege...?
Bartek -
Using database-link in view to get around ORA-01031 error
I have been granted select rights on a users table. I am therefore able to select from his table. If however I try create a view against his table I run into the ORA-01031 problem. I have worked around this problem by creating a database-link to myself and then adding that to the view creation and it works. What are the downsides of using the database-link in this way?
The only down side I have been able to identify is that a extra session is created and that the CPU has a little extra work due to the LOOP BACK that takes place. I need to ensure the network is not unnessesarly used and therefore will need to ensure that 127.0.0.1 (local host) is used in the database connection discription. e.g.
create database link my_db_link connect to scott identified by tiger using '(description=(address=(protocol=tcp)(host=127.0.0.1) (Port = 1521) ) (connect_data= (sid=ora10g)))'; -
View, instead of trigger and ORA-01031
Hello,
I have a view based on outer joins like
CREATE VIEW vt ( colV1, colV2, colV3, colV4, colV5, colV6, colV7, colV8 ) AS
SELECT A.colA1, A.colA2, C.colB0, B.colB2, B.colB3, B.colB4, C.colC2, H.colH2
FROM tabA A
,tabB B
,tabC C
,( SELECT ...
FROM tabD D
,tabE E
WHERE D.colD1 = E.colE1
) H
WHERE A.colA1 = B.colB1
AND LTRIM(B.colB2,'A') = LTRIM(C.colC1(+),'A')
AND B.colB3 = H.colH1(+); and an instead of trigger
CREATE OR REPLACE TRIGGER vt_upd
INSTEAD OF UPDATE ON vt
BEGIN
UPDATE tabB
SET colB4 = :NEW.colV6
WHERE colB0 = :NEW.colV2;
END;An now the problem: an update statement UPDATE vt set colV6=1 WHERE colV1=1; in SQL*Plus works as it should, but performing an update in APEX from a tabular or edit form shows an error: ORA-01031:ORA-01031: insufficient privileges, update...The strange thing: in both sessions there is the same user USER1 logged on !
Why this difference ? Can anybody explain ?
Regards,
HeinzHi Heinz,
Your statement -
what I wrote as table tabC in reality is a view to one table and one view in another schema.That'll be it, you need to grant explicit rights for the objects in that schema to the schema that is your parsing schema for your workspace.
In other words, if you have -
1) Workspace 'A' with parsing schema 'B'
and you are trying to do -
select foo from c.bar
i.e. you're trying to query an object in schema 'C'.
Then you need to (as a DBA or connected to schema C) -
grant select on bar to b;Roles won't work (when used through APEX)...I can't say that any other way, you might find it works in SQLPlus with roles, but through APEX it won't...you need those explicit grants.
Hope this makes sense.
John. -
Hi
We are trying to create database trigger on update of table HZ_CUSTOMER_PROFILES when CREDIT_HOLD='Y'
If this update is done from certain operating unit we are inserting into another custom table when compiling trigger we are getting error as given below
LINE/COL ERROR
5/2 PL/SQL: SQL Statement ignored
17/2 PL/SQL: ORA-00936: missing expression
SQL> l 5
5*
SQL> l 17
17* COUNTRY,
Copying code used for creating trigger
CREATE OR REPLACE TRIGGER "APPS"."SDS_CREDIT_HOLD_ROW"
BEFORE UPDATE ON HZ_CUSTOMER_PROFILES
FOR EACH ROW
WHEN ( new.CREDIT_HOLD='Y')
BEGIN
IF FND_PROFILE.VALUE('ORG_ID')=3217 THEN
INSERT INTO SDS.SDS_CREDIT_HOLD
(CUSTOMER_NAME,
CUSTOMER_NUMBER,
ADDRESS,
CITY,
COUNTRY,
HOLD_BY,
MAIL_LIST1,
RESP_VALUE,
ORG_ID,
MAIL_LIST2)
VALUES
(select rc.customer_name,
rc.customer_number,
ra.address1,
ra.city,
ra.country,
fu.user_name,
fu.email_address,
TO_NUMBER(FND_GLOBAL.RESP_ID),
TO_NUMBER(fnd_profile.value('ORG_ID')),
SDS_EMAIL_ADD_FNC('KAMALAKAR.GUDAPAREDDI,BRIAN.MILLER')
from HZ_CUSTOMER_PROFILES hcp, ra_site_uses rsa,
ra_addresses ra, ra_customers rc, fnd_user fu,
(select distinct site_use_id from HZ_CUST_SITE_USES where site_use_code='BILL_TO'
and status='A') site_acct
where hcp.status='A'
and cust_account_id in (select distinct cust_account_id from HZ_CUSTOMER_PROFILES
where credit_hold='Y'
and status='A')
and hcp.site_use_id=rsa.site_use_id (+)
and rsa.address_id=ra.address_id (+)
and rsa.site_use_id= site_acct.site_use_id (+)
and hcp.cust_Account_id=rc.customer_id
and hcp.credit_hold='Y'
and hcp.last_updated_by=fu.user_id
and hcp.CUST_ACCOUNT_PROFILE_ID=:new.CUST_ACCOUNT_PROFILE_ID
and hcp.ROWID=:new.ROWID);
END IF;
-- commit;
END SDS_CREDIT_HOLD_ROW;
tried to search for fix in forums checked all columns in select clause and insert they appear to be fine attaching table structure also for reference
CREATE TABLE SDS_CREDIT_HOLD
(CUSTOMER_NAME VARCHAR(50),
CUSTOMER_NUMBER VARCHAR2(30),
ADDRESS VARCHAR2(240),
CITY VARCHAR2(60),
COUNTRY VARCHAR2(60),
HOLD_BY VARCHAR2(100),
MAIL_LIST1 VARCHAR2(240),
RESP_VALUE NUMBER,
ORG_ID NUMBER,
MAIL_LIST2 VARCHAR2(240))
if any hint for fixing this issue it will be highly appreciated
Thanks
Kamalakar.GProblem is here:
WHEN ( new.CREDIT_HOLD='Y')
Should be using a colon in front of any new or old columns in your PL/SQL and SQL, thus try this:
WHEN ( :new.CREDIT_HOLD='Y')
FYI: when using triggers (unless you specify otherwise in the trigger definition itself):
old values are referenced via :old.column and new values via :new.column -
Check database with error "ORA-01031: insufficient privileges"
Dear Gurus,
I ran "Check database" in DB13 but I got error "ORA-01031: insufficient privileges"
BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:
'PREPARE stmt_5 STATEMENT FROM'
'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDER BY OBJNAME'
ORA-01031: insufficient privileges
BR0806I End of BRCONNECT processing: cecxekdh.chk 2010-03-31 12.37.00
Note I try to execute sapdba_role.sql (with command "sqlplus /nolog @sapdba_role.sql SR3") as Note 134592 both login 'oradev' and 'devadm' but it seem to do nothing (not found sapdba_role.log)
Please advice.
Best regards,
Choosak B.
Ps.
detailed log of /oracle/DEV/sapcheck/cecxekdh.chk
BR0801I BRCONNECT 7.00 (40)
BR0477I Oracle pfile /oracle/DEV/102_64/dbs/initDEV.ora created from spfile /oracle/DEV/102_64/dbs/spfileDEV.ora
BR0805I Start of BRCONNECT processing: cecxekdh.chk 2010-03-31 12.30.53
BR0484I BRCONNECT log file: /oracle/DEV/sapcheck/cecxekdh.chk
BR0101I Parameters
Name Value
oracle_sid DEV
oracle_home /oracle/DEV/102_64
oracle_profile /oracle/DEV/102_64/dbs/initDEV.ora
sapdata_home /oracle/DEV
sap_profile /oracle/DEV/102_64/dbs/initDEV.sap
system_info devadm/oradev sapdev SunOS 5.10 Generic_142900-03 sun4v
oracle_info DEV 10.2.0.4.0 8192 7465 94896497 sapdev UTF8 UTF8
sap_info 701 SAPSR3 0002LK0003DEV0011N11827599290015Maintenance_ORA
make_info sun_64 OCI_102 Feb 21 2009
command_line brconnect -u / -jid CHECK20100331123000 -c -f check
alert_log /oracle/DEV/saptrace/background/alert_DEV.log
BR0280I BRCONNECT time stamp: 2010-03-31 12.30.56
BR0813I Schema owners found in database DEV:
DBSNMP, DIP, OPS$DEVADM, OPS$ORADEV, OPS$SAPSERVICEDEV, ORACLE_OCM, OUTLN, SAPSR3*, SYS, SYSTEM,
TSMSYS
BR0118I Tablespaces and data files
Tablespace Status File Status Id. Size MaxSize IncrSize BlkSize Device Type Link
PSAPSR3 ONLINE+ /oracle/DEV/sapdata2/sr3_1/sr3.data1 ONLINE+ 4 2411732992 10485760000 20971520 8192 16777219 FILE NOLINK
SYSTEM ONLINE+ /oracle/DEV/sapdata1/system_1/system.data1 SYSTEM+ 1 1017126912 10485760000 20971520 8192 16777219 FILE NOLINK
BR0119I Redo log files
File Status Group Size Device Type Link
/oracle/DEV/origlogA/log_g11m1.dbf INUSE 1 52429312 16777218 FILE NOLINK
/oracle/DEV/mirrlogA/log_g11m2.dbf INUSE 1 52429312 16777218 FILE NOLINK
/oracle/DEV/origlogB/log_g12m1.dbf INUSE 2 52429312 16777218 FILE NOLINK
/oracle/DEV/mirrlogB/log_g12m2.dbf INUSE 2 52429312 16777218 FILE NOLINK
/oracle/DEV/origlogA/log_g13m1.dbf INUSE 3 52429312 16777218 FILE NOLINK
/oracle/DEV/mirrlogA/log_g13m2.dbf INUSE 3 52429312 16777218 FILE NOLINK
/oracle/DEV/origlogB/log_g14m1.dbf INUSE 4 52429312 16777218 FILE NOLINK
/oracle/DEV/mirrlogB/log_g14m2.dbf INUSE 4 52429312 16777218 FILE NOLINK
BR0120I Control files
File Size Device Type Link
/oracle/DEV/origlogA/cntrl/cntrlDEV.dbf 15024128 16777218 FILE NOLINK
/oracle/DEV/origlogB/cntrl/cntrlDEV.dbf 15024128 16777218 FILE NOLINK
/oracle/DEV/sapdata1/cntrl/cntrlDEV.dbf 15024128 16777219 FILE NOLINK
BR0982I Database disk volumes
Directory / Raw disk Device Total[KB] Free[KB] Used[%] MaxNeed[KB] MaxMiss[KB]
/oracle/DEV/102_64 16777218 480700086 404332206 15.89 0 0
/oracle/DEV 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/mirrlogA 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/mirrlogB 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/origlogA 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/origlogB 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/sapdata1 16777219 591212116 404332206 31.61 240019884 0
/oracle/DEV/sapdata2 16777219 591212116 404332206 31.61 240019884 0
/oracle/DEV/sapdata3 16777219 591212116 404332206 31.61 240019884 0
/oracle/DEV/sapdata4 16777219 591212116 404332206 31.61 240019884 0
/oracle/DEV/saparch 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/sapbackup 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/sapcheck 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/sapreorg 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/saptrace 16777218 480700086 404332206 15.89 0 0
/oracle/DEV/oraarch 16777218 480700086 404332206 15.89 0 0
BR0280I BRCONNECT time stamp: 2010-03-31 12.31.29
BR0814I Number of tables in schema of owner SAPSR3: 74582
BR0836I Number of info cube tables found for owner SAPSR3: 49
BR0814I Number of tables/partitions in schema of owner SYS: 625/189
BR0814I Number of tables/partitions in schema of owner SYSTEM: 134/27
BR0280I BRCONNECT time stamp: 2010-03-31 12.32.28
BR0815I Number of indexes in schema of owner SAPSR3: 89159
BR0815I Number of indexes/partitions in schema of owner SYS: 678/199
BR0815I Number of indexes/partitions in schema of owner SYSTEM: 175/32
BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
BR0816I Number of segments in schema of owner DBSNMP: 25
BR0816I Number of segments in schema of owner OPS$DEVADM: 1
BR0816I Number of segments in schema of owner OUTLN: 9
BR0816I Number of segments/LOBs in schema of owner SAPSR3: 168369/2314
BR0816I Number of segments/LOBs in schema of owner SYS: 1831/87
BR0816I Number of segments/LOBs in schema of owner SYSTEM: 353/22
BR0816I Number of segments in schema of owner TSMSYS: 4
BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
BR0961I Number of conditions found in DBCHECKORA: 118
BR0983I Tablespace fragmentation
Tablespace Files Tables Indexes Extents Total[KB] Used[%] Free[KB] FreeExt. MaxSize[KB] MaxAlloc[KB] Used[%] Free[KB] Largest[KB]
PSAPSR3 16 74248 88689 209864 54138880 94.51 2970752 240 163840000+ 109701120+ 31.23+ 112671872+ 9246720:7966720:7946240:7905280:7905280+
PSAPSR3701 14 0 0 0 54466560 0.00 54465664 20 143360000+ 88893440+ 0.00+ 143359104+ 9021440:8192000:8192000:8192000:8192000+
PSAPSR3701X 4 310 445 12190 68342784 94.20 3962240 7 68342784 0 94.20 3962240 1298432:1191936:979968:163776:163776
PSAPSR3USR 1 24 25 51 51200 6.50 47872 1 10240000+ 10188800+ 0.03+ 10236672+ 10188800+:47872:0:0:0
PSAPTEMP 1 0 0 0 1433600 0.00 1433600 0 10240000+ 8806400+ 0.00+ 10240000+ 8806400+:0:0:0:0
PSAPUNDO 1 0 0 0 7823360 0.00 7823296 406 10240000+ 2416640+ 0.00+ 10239936+ 2416640+:2041792:1814464:1433536:603072
SYSAUX 1 254 284 2059 307200 93.35 20416 16 10240000+ 9932800+ 2.80+ 9953216+ 9932800+:13248:3072:1024:640
SYSTEM 1 505 569 2926 993280 98.91 10816 2 10240000+ 9246720+ 9.59+ 9257536+ 9246720+:10176:640:0:0
Total: 39 75341 90012 227090 187556864 62.29 70734656 692 426742784 239185920 27.38 309920576 60157952:19463744:18936384:17695616:16864768
BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:
'PREPARE stmt_5 STATEMENT FROM'
'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDER BY OBJNAME'
ORA-01031: insufficient privileges
BR0806I End of BRCONNECT processing: cecxekdh.chk 2010-03-31 12.37.00
BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00
BR0804I BRCONNECT terminated with errorsHi,
It solved after change permission of directory that sapdba_role.sql kept to oradev:dba after that it can write sapdba_role.log.
Thank you for your guideline.
Now, I can ran 'Check database' via DB13 without that error.
Best regards,
Choosak B. -
ORA-01031: insufficient privileges from auxiliary database while connecting
i am getting this error ORA-01031: insufficient privileges from auxiliary database while connecting plz help.
TNS-01106: Listener using listener name VINAR has already been started
[oraclone@server VINTEST_server]$ tnsping VINAR
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 17-JAN-2013 19:10:49
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
/d04/oraclone/db/tech_st/11.1.0/network/admin/VINTEST_server/sqlnet_ifile.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=server.csacons.com)(PORT=1571)) (CONNECT_DATA= (SERVICE_NAME=VINAR) (INSTANCE_NAME=VINAR)))
OK (0 msec)
[oraclone@server VINTEST_server]$ rman target sys/change_on_install@VINAR auxiliary /
Recovery Manager: Release 11.1.0.7.0 - Production on Thu Jan 17 19:11:38 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-01031: insufficient privileges
[oraclone@server VINTEST_server]$ sqlplus sys/change_on_install@VINAR as sysdba
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Jan 17 19:31:52 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges
Enter user-name: sys@VINAR as sysdba
Enter password:
ERROR:
ORA-01031: insufficient privileges
Enter user-name: [oraclone@server VINTEST_server]$
[oraclone@server VINTEST_server]$
SQL> select * from v$pwfile_users;
no rows selected
SQL>
listner.ora
SID_LIST_VINTEST =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME= /d04/oraclone/db/tech_st/11.1.0)
(SID_NAME = VINTEST)
#(GLOBAL_DBNAME = VINAR)
#(ORACLE_HOME= /d03/oravnr/db/tech_st/11.1.0)
#(SID_NAME = VINAR)
(SID_DESC =
#(ORACLE_HOME= /d04/oraclone/db/tech_st/11.1.0)
#(SID_NAME = VINTEST)
(GLOBAL_DBNAME = VINAR)
(ORACLE_HOME= /d03/oravnr/db/tech_st/11.1.0)
(SID_NAME = VINAR)
tnsnames.ora
VINTEST=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=server.csacons.com)(PORT=1591))
(CONNECT_DATA=
(SERVICE_NAME=VINTEST)
(INSTANCE_NAME=VINTEST)
VINAR=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=server.csacons.com)(PORT=1571))
(CONNECT_DATA=
(SERVICE_NAME=VINAR)
(INSTANCE_NAME=VINAR)
kind regards
plz helpPl do not post duplicates - ORA-01031: insufficient privileges from auxiliary database while connecting
-
Oracle Database 10g Express Edition (ORA-01031: insufficient privileges)
Hello,
I am new to 10g Express. I am working on Windows XP and I have Oracle App Server and JDev install on my box. I just installed 10g Express. When I try to connect to the database but I get the following error msg:
SQL> connect sys/admin as sysdba;
ERROR: ORA-01031: insufficient privileges
I am also not able to see the homepage either.
Can some please help.
Thanks
etnotAre you saying you can only have one instance of an
Oracle Database install if you are going to use
Oracle XE?Yes.
Oracle Database XE is free for usage with the following limitations:
Supports up to 4GB of user data (in addition to Oracle system data)
Single instance only of Oracle Database XE on any server
May be installed on a multiple CPU server, but only executes on one processor in any server
May be installed on a server with any amount of memory, but will only use up to 1GB RAM of available memory -
ORA-01031 WHEN CONNECTING TO AUXILIARY DATABASE
Hi
i am currently trying to to create a standby database using RMAN using the ORACLE RMAN Backup and recovery book.
I get the ORA-01031 when i connect to the auxiliary database.
i do the following:
RMAN> connect target sys/password@primary
connected to target
RMAN > connect auxiliary sys/password@aux1
ORA-01031.............insufficient privileges
obviously the database aux1 hasnt been created yet but i have configured the tns and listener and both work fine, also created a password file and created a pfile from the spfile in the primary database as instructed by the book. I also started the aux1 database in nomount mode as well.
does any one have any ideas where i maybe going wrong?
thanksconn sys/pwd@aux1 as sysdba ,what happens to this
in sqlplus
add an entry to your TNSNAMES.ora
SQLNET.AUTHENTICATION_SERVICES = (NTS)
We dont need this entry this is for OS authenicarion sorry
then try again
Version and OS?
Message was edited by:
Maran Viswarayar
Message was edited by:
Maran Viswarayar -
Getting ORA-01031 while connecting to target database
I have created RMAN catalog. While connecting to target database i am getting ORA-01031: insufficient privileges. What could be the reason. I have added entry of both the databases in listner.ora as well as tnsnames.ora, but still facing the same problem. Please help
[oracle@dbapool ~]$ rman catalog=rman/pass@sdn target=sys/pass@sdn1
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Apr 30 23:49:46 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-01031: insufficient privilegesIssue got resolved. The problem was with password file.
-
Getting ORA-01031 when attempting to Create Database
I am attempting to issue a CREATE DATABASE statement via JDBC but I am getting a "ORA-01031: insufficient privileges" error. I am logged in as an administrator and I have no trouble creating tables. I am also receiving the same error when attempting this from SQLPlus. I'm stumped.
Thanks,
PinoPino,
I haven't verified this, but only the SYS user can create a DATABASE in Oracle, and you also need to use a special login (when going via SQL*Plus) which JDBC cannot handle. Hence your failures both via JDBC and SQL*Plus.
By the way, if you are new to Oracle, but have experience in another database, then the Oracle idea of a DATABASE is probably different than what you're used to. That's probably why you're stumped. If you haven't already done so, I suggest reading the Oracle Database Concepts volume of the Oracle documentation, which is available from:
http://tahiti.oracle.com
Good Luck,
Avi.
Maybe you are looking for
-
Special prices - Group discount
Hi There are special prices defined for certain customers. A special price discount were defined for a certain period which ended at the end of Sept 2010. Previously a group discount of 10% was defined for this customer. Now that the period discount
-
In my smart form why main's content din't display in print preview?Plz help
In my smart form why main's content din't display in print preview?Plz help me. Regards Indu Moderator message: too vague, help not possible, please describe problems in all technical detail when posting again. Edited by: Thomas Zloch on Jan 5, 2011
-
Cannot clear contents of an accounts dimension member
Hello.I am trying to clear some data that was calculated - because our calculation script currently isn't correct, and the result is misleading.I need to clear the data associated with an accounts dimension member.I tried "CLEARDATA mymbr;", "CLEARDA
-
Refresh whole relational model from database
Version 3.2.09 - Build MAIN-09.30 Hi, I have created a model of my database in SQL Developer using the Data Modeller component by dragging all the table objects from the Tables tree onto the relational and logical panes. As I make changes to the data
-
Hi I have a problem with my mail 4.5...my mails don't get in - what can I do to upgrade and get my mails faster - have been waiting for 2 hours now...