Trigger implementation in SYS as SYSDBA issue
I am trying to implement a trigger and getting following errors:
CREATE OR REPLACE TRIGGER gsrvr_trace
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01400: cannot insert NULL into ("SYS"."OBJ$"."NAME")
I use Oracle 9.2.0.8 on Linux.
Creation script:
CREATE OR REPLACE TRIGGER gsrvr_trace
AFTER LOGON ON DATABASE
DECLARE
isid PLS_INTEGER;
iserial PLS_INTEGER;
iaudsid PLS_INTEGER;
sprogram v$session.program%TYPE;
BEGIN
SELECT SYS_CONTEXT ('USERENV', 'SESSIONID')
INTO iaudsid
FROM DUAL;
SELECT SID, serial#, program
INTO isid, iserial, sprogram
FROM v$session
WHERE audsid = iaudsid;
DBMS_OUTPUT.put_line (sprogram);
IF (LENGTH (sprogram) > 0)
THEN
IF ( INSTR (UPPER (sprogram), 'GSRVR') > 0
OR INSTR (UPPER (sprogram), 'ARCMAP') > 0
THEN
EXECUTE IMMEDIATE 'alter session set tracefile_identifier="_'
|| SUBSTR
(sprogram,
1,
CASE
WHEN INSTR (sprogram, '@') = 0
THEN LENGTH (sprogram)
ELSE INSTR (sprogram, '@') - 1
END
|| '_'
|| USER
|| "";
EXECUTE IMMEDIATE 'alter session set timed_statistics=true';
EXECUTE IMMEDIATE 'alter set max_dump_size=2147483647';
EXECUTE IMMEDIATE 'alter session set events "10046 trace name context forever,level 12"';
EXECUTE IMMEDIATE 'alter session set statistics_level=ALL';
END IF;
END IF;
END;
/
The problem was only in quotes!!!
No " (double quotes), only ' (single ones!):)
Similar Messages
-
Cannot sqlplus sys as sysdba from remote server :ORA-12154
Hi,
I am trying to connect from linux VM app server to the database as sys as sysdba but it returns TNS error. I verified that listener is up, the REMOTE_LOGIN_PASSWORDFILE is exclusive and there is password file.
[ORACLE@SERVER admin]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:45:08 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
==============================================
It works when I give the DB name
[ORACLE@SERVER admin]$ sqlplus sys@ODB2 as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:49:50 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
==================================================
Could anyone please help me with the issue ?
Edited by: Cherrish on Apr 12, 2013 10:53 PMCherrish wrote:
Hi,
I am trying to connect from linux VM app server to the database as sys as sysdba but it returns TNS error. I verified that listener is up, the REMOTE_LOGIN_PASSWORDFILE is exclusive and there is password file.
[ORACLE@SERVER admin]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 12 21:45:08 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specifiedRealize that sqlplus line above shows no @TNS_ALIAS so no SQL*Net should be used to connect.
please type EXACTLY (line for line) as shown below
env | sort
sqlplus
/ as sysdba
COPY the results from above then PASTE all back here -
Hi ,
I have installed Oracle 11.2.0 . When connecting to sqlplus with sys as sysdba . Getting error as NO listener .
I started listener . But finally getting the message as
The listener supports no services
The command completed successfully
Kindly helpI am getting the same message
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0/dbhome_1/log/diag/tnslsnr/oracledb/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracledb.example.com)(PORT=1521)))
The listener supports no services
The command completed successfully
I don't find the services entry here . -
When I execute dbms_streams_auth.grant_admin_privilege procedure as a user granted the DBA role. I get the following error:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_STREAMS_AUTH", line 1211
ORA-06512: at line 2
I can only execute this command with the sys as sysdba on the oracle host. Not as system user from an external machine.
anyone know which privilege that sys user has that system doesnt ? I have tried all the execute privileges, but its not working.
SveinHello
The basic reason why this can not be done with the SYSTEM user is that SYSTEM does not have all the privileges granted with GRANT OPTION. Now if you would like to make system to perform this, please follow the below:
connect / as sysdba
create directory tmp_dir as '/tmp';
--i assume strmadmin user exists already
begin
dbms_streams_auth.grant_admin_privilege
grantee=>'SYSTEM',
grant_privileges=>false,
file_name=>'strm_privs.sql',
directory_name=>'tmp_dir'
end;
Now edit the file 'strm_privs.sql' and modify all the grant statements and add WITH GRANT OPTION clause. Execute this file from SYS so that SYSTEM gets all the required privileges. Now you should be able to perform this from SYSTEM itself.
I have not tested this and verified. Still I doubt the last statement in the file will still fail and you need this to execute from SYS:
BEGIN
dbms_streams_auth.grant_remote_admin_access('strmadmin');
END;
Thanks,
Rijesh -
Is possible to connect db with sys/sys as sysdba in SQLPLUS utility
Hi all,
I'm using windows 2000 with oracle 10.1.0
I have to connect server through SQLPLUS utility. I can able to connect system/manager@instance_name
From system user, i cant able to query >archive log list; .Im getting error as permission denaid.
is any possbilities there to login as super user(sys/sys as sysdba) in SQLLUS utility.
Thanksconnect sys/sys@instance_name as sysdbaUses password file in $ORACLE_HOME/dbs, connecting through SQL*NET
connect sys/sys as sysdbaUses the BEQ protocol to connect to the database process directly and uses OS authentication, meaning your can use whatever username or password, it does not matter, same as connect / as sysdba - It will always connect to the SYS schema regardless. For this to work, your account needs to be in the SYSDBA group. (DBA - Linux, OSDBA - Windows).
See the oracle standard documentation for creating a password file under Windows.
When you have created the passwd file, you can reset the password using
sqlplus / as sysdba
alter user sys identified by 'password' ; -
Can not able to log in into sys as sysdba
Hi all,
I have one instance name is skydb and once upon a time i used it when i created it.i did set one password for the sys user and created password file.but right now i have forgot the password of sys.again creating the password file using below command.
orapwd file=orapwdskydb password=oracle entries=10but can not able to log in into sys as sysdba using this 'oracle' password .
for your information now the database is down.we also need to up it.
please help.
thanks a lot in advance.
atanuHi All,
first of all thaks a lot for your promt reply.now for your information my os info is
Linux oracleDB11g 2.6.32-71.el6.i686 #1 SMP Fri Nov 12 04:17:17 GMT 2010 i686 i686 i386 GNU/Linuxmy account user is in DBA group and its confirm.
now am giving the output of the
each command
[oracle@oracleDB11g admin]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 23 11:04:25 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-01031: insufficient privileges and
[oracle@oracleDB11g admin]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 23 11:05:59 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privilegesalso want to tell you I have created that password file on location is
/oracle/app/oracle/product/11.2.0/dbhome_1/dbsthanks once again
atanu -
Difference between /as sysdba and sys /as sysdba
Hi,
What is the difference between logging to an oracle dba as
1. sys /as sysdba ->asking for password of sys user
2. /as sysdba -> Logging into the database without asking password.
Also pl explain me the difference between OS authentication and Password Authentication.
Regards,
JibuDear Jibu,
An administrative users belongs to the "dba" group on Unix, or the "ORA_DBA" (ORA_sid_DBA) group on Windows, he/she has the Admin OS writes, so its allows to connect without password.
connect / as sysdba ('/') is treated as root user and he will login without asking for password.
Its simple as, when you logged in as Root user and you want to log to some another user, simply you have to give su abc command, it will get login as abc without asking for password.
Remove root user from DBA group, then try to connect by passing connect / as sysdba, this time it will ask for password.
Edited by: Akram on Oct 12, 2011 4:57 AM -
Hi,
Our DB is in 8.1.7.4 on Win 2003 server. If I connect
SQL> connect sys/mypassword@MYDB as sysdba
I have
ERROR:
ORA-01017: invalid username/password; logon denied
But if I issue :
SQL> connect sys@MYDB as sysdba
Enter password:
It would be OK :
Connected.
What is the problem ?
Thank for help.
In the two cases I entered the correct password and I'm sure of it.By default, the SYS password on 8i is change_on_install, is it the one you used ?
Furthermore, the user/password used when you are conneting as sysdba doesn't matter :
E:\apps\oracle\ora0817\bin>sqlplus /nolog
SQL*Plus: Release 8.1.7.0.0 - Production on Wed Oct 1 18:44:03 2008
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL> conn kuere/eiriuur@DEMO817 as sysdba --obviously this user/password doesn't exists onto the database
Connected.
SQL> show user
USER is "SYS"
SQL> disc
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
With the Partitioning option
JServer Release 8.1.7.4.1 - Production
SQL> conn sys/change_on_install@DEMO817 as sysdba
Connected.
SQL> show user
USER is "SYS"
SQL> disc
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
With the Partitioning option
JServer Release 8.1.7.4.1 - Production
SQL> conn sys@DEMO817 as sysdba
Enter password:
Connected.
SQL> show user
USER is "SYS"
SQL> disc
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
With the Partitioning option
JServer Release 8.1.7.4.1 - Production
SQL> conn /@DEMO817 as sysdba
Connected.
SQL> show user
USER is "SYS"
SQL> show parameter password
NAME TYPE VALUE
remote_login_passwordfile string EXCLUSIVE
SQL>Please, check the remote_login_passwordfile parameter value as I showed here above. Are you locally on the server or remote connection ?
Lastly, some unexpected behaviour can come on non-certified config (8i on W2003), but you already know that.
Nicolas. -
After upgrading to Windows 8, then 8.1 from Windows 7 I have been experiencing frequent BSOD halts that appear to be related to the storage driver. Version 12.8 of the intel driver and utility has been used up until now. I have tried an older version (10.8)
of the driver and utility as that was reported to work will with Win 8. I have also (and currently) upgraded to the latest driver 12.9.0.1001 which was released only a few months ago. The issue appears to occur when the system is under high load for
extended periods (e.g. video rendering or extended game play). My guess is that as it's a memory management issue related to when the swap file is being extensively used.
I have a large number of mini-dumps available all with the same error id, and same sub-type. I have scanned the pc to confirm no infections, rootkits or other malware appear to be contributing to this issue. Suggestions or a fix would be greatly appreciated!
Here is some data from the latest full dump:
0: kd> .symfix
0: kd> .reload
Loading Kernel Symbols
Loading User Symbols
Loading unloaded module list
0: kd> !analyze -vv
* Bugcheck Analysis
MEMORY_MANAGEMENT (1a)
# Any other values for parameter 1 must be individually examined.
Arguments:
Arg1: 0000000000003453, The subtype of the bugcheck.
Arg2: ffffe00001bae2c0
Arg3: 0000000000125529
Arg4: 0000000000000004
Debugging Details:
BUILD_VERSION_STRING: 9600.16452.amd64fre.winblue_gdr.131030-1505
SYSTEM_MANUFACTURER: System manufacturer
SYSTEM_PRODUCT_NAME: System manufacturer
BIOS_VENDOR: American Megatrends Inc.
BIOS_VERSION: 1403
BASEBOARD_MANUFACTURER: ASUSTeK Computer INC.
OVERLAPPED_UNLOADED_MODULE: Address regions for 'dump_iaStorA'
and 'dump_iaStorA.sys (unloaded)' overlap
BUGCHECK_STR: 0x1a_3453
CPU_MICROCODE: 6,f,b,0 (F,M,S,R) SIG: C1'00000000 (cache) C1'00000000 (init)
DEFAULT_BUCKET_ID: WIN8_DRIVER_FAULT
PROCESS_NAME: System
CURRENT_IRQL: 0
ANALYSIS_SESSION_HOST: SILENTBOB
ANALYSIS_SESSION_TIME: 01-04-2014 00:07:43.0544
ANALYSIS_VERSION: 6.3.9600.16384 (debuggers(dbg).130821-1623) amd64fre
LAST_CONTROL_TRANSFER: from fffff8021b1ff0a5 to fffff8021b1cdca0
STACK_TEXT:
ffffd000`21a4a8b8 fffff802`1b1ff0a5 : 00000000`0000001a 00000000`00003453 ffffe000`01bae2c0 00000000`00125529 : nt!KeBugCheckEx
ffffd000`21a4a8c0 fffff802`1b472fed : ffffffff`ffffffff ffffe000`06eae0b0 ffffe000`04e98a60 ffffe000`01bae5a8 : nt! ?? ::FNODOBFM::`string'+0x20f05
ffffd000`21a4a960 fffff802`1b472ae9 : ffffe000`01bae2c0 ffffe000`04e98a60 ffffe000`01bae5a8 00000000`00000001 : nt!MmDeleteProcessAddressSpace+0x35
ffffd000`21a4a9a0 fffff802`1b4aebf8 : 00000000`00000000 00000000`00000000 ffffe000`01bae2c0 ffffe000`000c32f0 : nt!PspProcessDelete+0x199
ffffd000`21a4aa40 fffff802`1b0bb60f : 00000000`00000000 ffffd000`21a4ab69 ffffe000`01bae2c0 ffffe000`07eee000 : nt!ObpRemoveObjectRoutine+0x64
ffffd000`21a4aaa0 fffff802`1b10a3d2 : ffffe000`07eee000 ffffe000`07eeede8 ffffe000`07eeeff8 ffffe000`07eee048 : nt!ObfDereferenceObject+0x8f
ffffd000`21a4aae0 fffff802`1b4769b5 : 00000000`00000000 00000000`00000000 ffffd000`21a4ab69 ffffe000`07eeede8 : nt!MmFreeAccessPfnBuffer+0x22
ffffd000`21a4ab10 fffff802`1b6805ce : 00000000`00000001 fffff802`1b31f928 00000000`00000000 ffffe000`00000000 : nt!PfpFlushBuffers+0x24d
ffffd000`21a4abd0 fffff802`1b10d2e4 : 00000000`00000000 ffffe000`04e98740 ffffe000`04e98740 ffffe000`000ee900 : nt!PfTLoggingWorker+0x156
ffffd000`21a4ad40 fffff802`1b1d42c6 : ffffd000`201d5180 ffffe000`04e98740 ffffd000`201e11c0 ffffc000`04accdd0 : nt!PspSystemThreadStartup+0x58
ffffd000`21a4ada0 00000000`00000000 : ffffd000`21a4b000 ffffd000`21a45000 00000000`00000000 00000000`00000000 : nt!KiStartSystemThread+0x16
STACK_COMMAND: kb
FOLLOWUP_IP:
nt! ?? ::FNODOBFM::`string'+20f05
fffff802`1b1ff0a5 cc int 3
FAULT_INSTR_CODE: 85c6ffcc
SYMBOL_STACK_INDEX: 1
SYMBOL_NAME: nt! ?? ::FNODOBFM::`string'+20f05
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: nt
IMAGE_NAME: ntkrnlmp.exe
DEBUG_FLR_IMAGE_TIMESTAMP: 52718d9c
BUCKET_ID_FUNC_OFFSET: 20f05
FAILURE_BUCKET_ID: 0x1a_3453_VRF_nt!_??_::FNODOBFM::_string_
BUCKET_ID: 0x1a_3453_VRF_nt!_??_::FNODOBFM::_string_
ANALYSIS_SESSION_ELAPSED_TIME: fdb
ANALYSIS_SOURCE: KM
FAILURE_ID_HASH_STRING: km:0x1a_3453_vrf_nt!_??_::fnodobfm::_string_
FAILURE_ID_HASH: {218cdcfe-f420-cf6d-10b1-e3e8392a9d9e}
Followup: MachineOwner
0: kd> kb
RetAddr : Args to Child
: Call Site
fffff802`1b1ff0a5 : 00000000`0000001a 00000000`00003453 ffffe000`01bae2c0 00000000`00125529 : nt!KeBugCheckEx
fffff802`1b472fed : ffffffff`ffffffff ffffe000`06eae0b0 ffffe000`04e98a60 ffffe000`01bae5a8 : nt! ?? ::FNODOBFM::`string'+0x20f05
fffff802`1b472ae9 : ffffe000`01bae2c0 ffffe000`04e98a60 ffffe000`01bae5a8 00000000`00000001 : nt!MmDeleteProcessAddressSpace+0x35
fffff802`1b4aebf8 : 00000000`00000000 00000000`00000000 ffffe000`01bae2c0 ffffe000`000c32f0 : nt!PspProcessDelete+0x199
fffff802`1b0bb60f : 00000000`00000000 ffffd000`21a4ab69 ffffe000`01bae2c0 ffffe000`07eee000 : nt!ObpRemoveObjectRoutine+0x64
fffff802`1b10a3d2 : ffffe000`07eee000 ffffe000`07eeede8 ffffe000`07eeeff8 ffffe000`07eee048 : nt!ObfDereferenceObject+0x8f
fffff802`1b4769b5 : 00000000`00000000 00000000`00000000 ffffd000`21a4ab69 ffffe000`07eeede8 : nt!MmFreeAccessPfnBuffer+0x22
fffff802`1b6805ce : 00000000`00000001 fffff802`1b31f928 00000000`00000000 ffffe000`00000000 : nt!PfpFlushBuffers+0x24d
fffff802`1b10d2e4 : 00000000`00000000 ffffe000`04e98740 ffffe000`04e98740 ffffe000`000ee900 : nt!PfTLoggingWorker+0x156
fffff802`1b1d42c6 : ffffd000`201d5180 ffffe000`04e98740 ffffd000`201e11c0 ffffc000`04accdd0 : nt!PspSystemThreadStartup+0x58
00000000`00000000 : ffffd000`21a4b000 ffffd000`21a45000 00000000`00000000 00000000`00000000 : nt!KiStartSystemThread+0x16
0: kd> dv
Unable to enumerate locals, HRESULT 0x80004005
Private symbols (symbols.pri) are required for locals.
Type ".hh dbgerr005" for details.You may have read this thread?
http://answers.microsoft.com/en-us/windows/forum/windows_8-system/bsod-power-driver-state-failure-iastorasys/4643832c-e2b6-49ca-b646-6ff135bc30f9?msgId=e7295c77-5107-4bb2-843b-3326b3786ee8
Have you run the Memtest86 tool for testing memories?
http://www.memtest.org/ -
Hello,
Can I create a pdf that doesn't trigger Acrobat's JavaScript is currently disabled and this document uses it for some features. Enabling JavaScript can lead to potential security issues.
I even get this error when I create a blank pdf.
I'm not using any JavaScript in the form and the nature of the message might tend to be a bit scary to some people since it mentions enabling JS can lead to potential security issues. I basically want to disable the messaging of a feature I'm not even using.
Anyone know if this is possible and if so, how I go about it?
Thank you.Hi,
I too share your frustration!!
Unfortunately I do not have a complete answer for you.
From the start I must say that Stefan Cameron has been very helpful (http://forms.stefcameron.com/2010/01/14/acrobatreader-9-3-now-available/), however I have not had sufficient time available to deal with the issue (or find a satisfactory resolution).
The original post that Srini shared with you related to an XFA form that had FormCalc and Javascript in it. I will now share with you another situation that is closer to your experiences.
Sometimes where we have a complex solution/form, we often give our users a PDF with instructions and demonstrations. We generate these using Adobe products:
LiveCycle Designer ES to generate the solution/form;
Captivate to record the demonstration (.swf);
Acrobat to package it up in a static PDF.
The screen shots below are from a PDF that includes written instructions and six Flash (.swf) files. The PDF does NOT include fields/form objects and does NOT include any FormCalc or Javascript.
One of the big sells in Acrobat 9 was that Adobe had fully integrated Flash (Adobe product, ex. Macromedia) into Acrobat 9. This mean that .swf files could run natively inside a PDF. Brilliant!!! The website today is still pushing this message, for example:
Now bear in mind that the following screenshots are from a PDF that does not contain any scripting - its sole purpose is to "inform" the user, "look as good as the work I put into it", incorporate instruction and "multimedia" in a "single polished file" and I should be "confident that my audience will be able to view my work exactly as intended".
Not so!!
When the user now opens the form, all looks OK. No warning. They can read the instructions and scroll down to the multimedia (.swf files).
However when the user clicks on the multimedia, the yellow bar appears:
I go through the "trust" process:
And the PDF looks like it is OK, no yellow bar. When I click on the multimedia, it begins to play - yes!! BUT ONLY FOR A SECOND OR TWO AND THEN IT STOPS AND GOES BACK TO THE START - AGGGGHHHHHHH!!!!!. I would apologise for shouting, but this is beyond frustration. The work in capturing six screencasts in Captivate, annotating them, publishing to .swf and packaging up in Acrobat has been a complete waste of time. Worse than that I now have several PDFs out there, that do not work. Good advertisement for my business? I don't think so!!
The document that Stefan provided (Managing JavaScript Execution in the Acrobat Family of Products) does not mention Flash/.swf as being a problem. However I would recommend that you go through this document, as it may help you.
So, where to now? I don't know. The previous posts and Stefan's responses have several urls that may help. You should maybe consider logging your experiences as a bug (log at Adobe).
In the meantime good luck,
Niall
UPDATE:
This behaviour (.swf playing for only a few seconds) happens in PDFs where the .swf is inserted as legacy media to run in earlier versions of Acrobat/Reader. In this case Acrobat/Reader is making an external call to Flash Player. Hence the yellow bar. However it does not explain why the Flash video still does not play when trusted.
If the .swf is added into the PDF as Flash media to run on Acrobat 9 and above, then it works without displaying the yellow warning bar.
So maybe any feature of your PDF that calls an external resource is likely to show the yellow warning bar. -
Post-Query Trigger Implementation in ADF
Hi,
I am working on a migration project.I need the equivalent functionality of POST-QUERY trigger of Oracle Forms,so i overrided the createInstanceFromResultSet(QueryCollection qc,ResultSet rs).can anybody suggest after getting some data from this method how to populate it in the client side field.?
Thanks In advanceAll you've done is tell us how you implemented a particular use case in Forms - you haven't told us what is the use case... Describe to us what you are trying to accomplish, not how you did it in forms or how you've tried to do it in JDev.
For example, "when the user retrieves the sales order, the shipping address should be retrieved and displayed on the screen" - something like that.
John -
Getting ORA-01031: Insufficient privileges when connecting as sys as sysdba
Hi There,
I am running Linux AS version 4, oracle 102.0.1, and logginging as oracle user which belongs to dba group. I got error "ORA-01031: Insufficient privileges" when trying to connect as sys user to bring up database. I wondered what is causing the error. Here is an example
oracle-dev>sqlplus /nolog
SQL>conn as sys/oracle@dev as sysdba
ERROR:
ORA-01031: Insufficient privileges
Any suggestions would be greatly appreciated. Thanks again.
Rich,Did you create a password file ?
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b15658/admin_ora.htm#sthref142
Message was edited by:
Paul M.
BTW, the syntax is
SQL>conn sys/oracle@dev as sysdba -
Cant conect "sys as sysdba" from remote
Hi all ,
A strange thing happening with me ..
my database is on ip(prod1) and client is ip(Host)
When I make connecttion from prod1 as follows :
sqlplus sys@prod1 as sysdba
connected ...
Its giving me sys connection .
But from IP (remote HOst client )
when i fire
sqlplus sys@prod1 as sysdba
LOGON denied ...
But from IP(remote Host client )when i firng
sqlplus scott/tiger@prod1
connected ....
1.i m typing crrect password
2. my remote_login_passwordfile = EXCLUSIVE1. Are you connecting to the right database ?
On you remote client:
$ORACLE_HOME/bin/tnsping prod1 and make sure that it'is resolving to the right service.
2. Try to connect via EZCONNECT (NAMES.DIRECTORY_PATH should contain ezconnect value):
$ORACLE_HOME/bin/sqlplus sys@hostname:port/service as sysdba
On your server
3. Check your $TNS_ADMIN/sqlnet.ora Make sure there is no such a line as
tcp.validnode_checking = yes
If so, make sure that your remote client is a part of tcp.invited_nodes -
Hi there
Can any body explain me, why SYS user should always connect to the database as SYSDBA/SYSOPER only?
Why he cannot login without as a SYSDBA/SYSOPER.
TIA
Aqueel.Though you should understand the implications of making this change. Here's the excerpt from the Oracle docs.
"O7_DICTIONARY_ACCESSIBILITY is intended for use when you migrate from Oracle7 to Oracle9i. It controls restrictions on SYSTEM privileges. If the parameter is set to true, access to objects in the SYS schema is allowed (Oracle7 behavior). The default setting of false ensures that system privileges that allow access to objects in "any schema" do not allow access to objects in SYS schema.
For example, if O7_DICTIONARY_ACCESSIBILITY = false, then the SELECT ANY TABLE privilege allows access to views or tables in any schema except the SYS schema (data dictionary tables cannot be accessed). The system privilege EXECUTE ANY PROCEDURE allows access on the procedures in any schema except the SYS schema.
If this parameter is set to false and you need to access objects in the SYS schema, then you must be granted explicit object privilege. Also, the following roles, which can be granted to the database administrator, also allow access to dictionary objects: SELECT_CATALOG_ROLE, EXECUTE_CATALOG_ROLE, and DELETE_CATALOG_ROLE." -
CONNECT INTERNAL 시 SYS에 PASSWORD 걸기(SYSDBA, SYSOPER)
제품 : ORACLE SERVER
작성날짜 : 1997-03-31
SYS user 에 passwd 거는 방법
===========================
이를 걸게 되면 connect internal 접속 시 passwd를 물어보게 되며 DBA group이
아닌 다른 user에서도 sys user와 똑같이 작업할 수 있다.
1) initSID.ora 화일에
REMOTE_OS_AUTHENT = TRUE
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
2) ?/dbs 에서
orapwd file=orapwSID password=my_password entries=10
(이 때의 SID는 실제의 ORACLE_SID 를 적어주어야 함.)
3) connect internal 후
grant sysdba to scott
grant sysoper to scott 를 부여한다.
이를 부여하면 sys의 passwd를 알지 못해도
SVRMGR> connect internal;
SVRMGR> passwd ? :
만약 passwd 를 모르면
SVRMGR> connect scott/tiger as sysoper ;
SVRMGR> startup 이 가능하다.
참고) 이의 효과를 위해 /etc/group 화일에 oracle os user가 DBA group 이
아니어야 하며 일반 user에서도 위의 작업을 똑같이 실행하려면 configSID.ora
화일을 oracle user 아닌 다른 user에도 실행이 가능할 수 있도록 실행 MODE가
4755 이어야 한다.If you want to connect a new user as SYSDBA or SYSOPER, you must first create a repository. Check some document for creating a repository with seperate tablespace.
Maybe you are looking for
-
Video is not showing in artist lessons in garageband
I am having a bit of a problem with the Artist lessons on Garageband. It seems that a few of them do now show the video when I play them; the audio works just fine, but the video box is just black. This does not happen with all of them just a few, an
-
Save form with data from a field
Hi, Is there an option to save the form with the data from one of the fields? Example: form field "Name", user enters Will William. Can I use this to autmatically save the form in the end as "Will William" and choose the save location? Thanks
-
how to get PO number for a particular delivery ..tried using VBFA but could not find
-
Can I set up a win2k 802.1x client authentication (win2k OS) using a cisco 350 aironet adapter via a roamabout r2 AP and get authenticated with a cisco ACS 3.0 radius server without having a win2k active directory domains ( i guess without using cert
-
Crucial MX100 SSD- Freezing in middle of my work ( MAC OS X 10.10.4)
Hello I have Crucial CT256MX100SSD1 (256 GB) installed on my Macbook Pro 2011 OS X 10.10.4 I have used optimal bay for my HDD and I used SSD on primary SATA port. I used a software to clone all my data from HDD to SSD. I didn't have any issues with t