connect Oracle using shell with the error log

Hello

I need to connect to oracle 10g db using unix shell files. Already I have username, password, hoststring and details is SCOTT/TIGER@TESTDB.
I need to pass the values of this 3 (SCOTT/TIGER@TESTDB) at runtime only (i.e.) as PARAMETERS. Suppose that I'll give the wrong password or username, I need to capture this error in 1file and send the error details to our dba teams mail identification. Identification of email as [email protected] if its success, I have need to write the 'success' message in 1 file and no need to send a mail to the group.

Can U please help to solve this problem.


Thanks and greetings
Sivaraman.

kn_sivaraman wrote:

Sorry! IM new to the forum. I know how to change this dn't topics.

You must change the forums. No topics.

This is not the right forum for you topic. Find the Linux forum and ask your question there please.

Thank you.

Tags: Database

Similar Questions

  • My attempt to connect to hotmail fails with the error message "this domain Services have been abandoned.

    Hello

    My attempt to connect to hotmail account fails with the error message "this domain Services have been abandoned. The problem persists in all web browsers. I'm unable to open a session (* address email is removed from the privacy *) which I've used for more than ten years, and I can't afford to lose. The problem started today and I don't know that I ever change any setting in my PC.

    Can someone help me with the first note.
    Thank you.
    Raj Kishore
    E-mail address is removed from the privacy *.
    E-mail address is removed from the privacy *.

    Hi Rajkis,

    When you use Windows Live Hotmail and the problem you posted is with Windows Live, so it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    Windows Live Solution Center Hotmail Portal

    http://windowslivehelp.com/product.aspx?ProductID=1

    I hope this helps.

  • Failure of the load of the inventory... OPatch failed to load the inventory for the Home.OPatch Oracle data failed with the error code = 73

    Hello

    I will apply patch bundle and my oracle database 11.2.0.2 and Microsoft Windows x 86 platform. As read the file Readme Oracle recommends to use OPatch utility version 11.2.0.1.3 or later. To check the inventory availability I use the command lsinventory % ORACLE_HOME%/OPatch/opatch.

    It ended to give details below.

    Citing O 11.2 patch .0.1.1

    OPatch could not create/open history for writing file: * my home oracle path***\cfgtoollogs\opatch\opatch_history.txt

    **ORACLE_HOME***\cfgtoollogs\opatch\opatch_history.txt (access is denied)

    Setup Oracle interim Patch version 11.2.0.1.1

    Copyright (c) 2009, Oracle Corporation.  All rights reserved.

    OPatch could open the log file, the recording is not possible

    Home Oracle: *.

    Inventory Center: C:\Program Files\Oracle\Inventory

    from: n/a

    OPatch version: 11.2.0.1.1

    YES version: 11.2.0.2.0

    YES location: * ORACLE_HOME * \oui

    Location of the log file: **ORACLE_HOME**\cfgtoollogs\opatch\opatch2015-04-09_16-27-49PM.log

    History of patch file: **ORACLE_HOME**\cfgtoollogs\opatch\opatch_history.txt

    Failure of the load of the inventory... OPatch failed to load the inventory for the given Oracle Home.

    LsInventorySession failed: LsInventory failed to create the log directory * ORACLE_HOME * \cfgtoollogs\opatch\lsinv\lsinventory2015-04 -.

    09_16-27 - 49 PM .txt

    OPatch failed with error code = 73

    Can someone please help me solve this problem?

    Do I need to install the last opatch utility?

    Hello

    This error message " LsInventorySession failed: LsInventory failed to create the log directory * ORACLE_HOME * \cfgtoollogs\opatch\lsinv\lsinventory2015-04 - .

    09_16-27 - 49 PM .txt "

    indicates that you have a permission problem with your file systems: cfgtoollogs/ORACLE_HOME/opatch

    Check the owner of this file system.

    Kind regards

  • Unable to connect to oracle DB using VBA and you are prompted with the error:-the client components and Oracle network have not been found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or installation of the

    Hello

    It would be helpful to me if someone can give me instructions on setting the version of driver or oracle client required to connect to the the Oracle DB using excel VBA

    My config: -.

    Windows - 8-64 bit

    Excel 2013-32 bit

    The components of the client / I should install, and how to solve the question below...

    I tried the VBA code... but you are prompted with the error message above

    Void Oracle()

    Con Dim As ADODB. Connection

    Dim rs As ADODB. Recordset

    Dim query As String

    The con value = New ADODB. Connection

    Set rs = New ADODB. Recordset

    strCon = "Driver = {Microsoft ODBC for Oracle}"; "." & _

    "CONNECTSTRING = (DESCRIPTION ="& _.

    "(ADDRESS =(PROTOCOL=TCP)"& _

    "(HOST = HostNumber)(PORT=PortNumber))" & _

    "(CONNECT_DATA = (SID = SIDNumber))); UID = username; pwd = password; »

    con. Open (strcon)

    If err. <>Number 0 then

    MsgBox ("Oracle error:" & vbCrLf & err.) Description)

    On the other

    MsgBox ("Oracle DB Connection successful.")

    End If

    End Sub

    I'll replace it with the values of host origin...

    Thanks for the suggestion you till u gave...

    complete solution is in the link below...

    https://itkbs.WordPress.com/2014/07/28/how-to-install-ODBC-driver-for-Oracle-in-Windows-7/

  • Filter junk e-mail in Microsoft Office Outlook 2007 (KB976884) fails with the error Code 1603 (or 1402) in Windows logs when using Windows Update in Windows 7

    It's more for info, but it would be great if MS past this info to their developers so that the Windows broken for KB976884 update package can be fixed.

    Newspapers MSI mentioned above show the following error information, all related to being too restrictive registry permissions.  Perhaps the restrictive registry permissions are design due to the product; in which case the update package must be fixed.

    Here are the logs in order, that they do not have:

    1. Error 1402.Setup cannot open the UNKNOWN\Components\1FA18F7974E099CD0AF18C3B9B1A1EE8\00002119E20000000000000000F01FEC registry key.  Make sure you have sufficient permissions to access the registry or contact the Support Services technical Microsoft (PSS) for help.  For more information about how to contact PSS, seePSS10R.CHM.
      = Logging stopped: 2009-12-21 10:16:07.
    2. Error 1402.Setup cannot open the UNKNOWN\Components\1FA18F7974E099CD0AF18C3B9B1A1EE8\00002119E20000000000000000F01FEC registry key.  Make sure you have sufficient permissions to access the registry or contact the Support Services technical Microsoft (PSS) for help.  For more information about how to contact PSS, seePSS10R.CHM.
      = Logging stopped: 2009-12-21 12:16:07.
    3. Error 1402.Setup cannot open the UNKNOWN\Components\DA42BC89BF25F5BD0AF18C3B9B1A1EE8\00002119E20000000000000000F01FEC registry key.  Make sure you have sufficient permissions to access the registry or contact the Support Services technical Microsoft (PSS) for help.  For more information about how to contact PSS, seePSS10R.CHM.
      = Logging stopped: 2009-12-21 12:43:10 =.
    4. Error 1402.Setup cannot open the UNKNOWN\Components\2562336682C91B850AF18C3B9B1A1EE8\00002119E20000000000000000F01FEC registry key.  Make sure you have sufficient permissions to access the registry or contact the Support Services technical Microsoft (PSS) for help.  For more information about how to contact PSS, seePSS10R.CHM.
      = Logging stopped: 2009-12-21 12:59:35 =.
    5. Error 1402.Setup cannot open the UNKNOWN\Components\6F949E36CB3004C50AF18C3B9B1A1EE8\00002119E20000000000000000F01FEC registry key.  Make sure you have sufficient permissions to access the registry or contact the Support Services technical Microsoft (PSS) for help.  For more information about how to contact PSS, seePSS10R.CHM.
      = Logging stopped: 2009-12-21 13:02:51 =.

    Resolve open Regedit and search on the first GUID after components.  The full registry path you are looking for is "HKEY_LOCAL_MACHINE-1-5-18\Components\.

    Don't find the GUID "00002119E20000000000000000F01FEC" as there are hundreds of entries and you will be forever.

    For example, in find point 5 '6F949E36CB3004C50AF18C3B9B1A1EE8' you will see that the key has void key and one of these sub keys will be '00002119E20000000000000000F01FEC '.  When you select '00002119E20000000000000000F01FEC' you will see you get "access denied".

    First STEP: right-click on the "00002119E20000000000000000F01FEC" subkey and select "permissions".  Windows will tell you that you can view this subkey.  Click on the "Advanced" button and click the group to select the 'administrators' tab 'Property' under ' to a change in ownership: "& check the 'Replace owner of subcontainers and objects' option click on 'APPLY '.  If you click on 'OK', you will get access denied.

    STEP 2: select the "permissions" tab and make sure that both the "Include permissions can be inherited from parents of the object" & "Replace all permissions of child object with permissions inheritable from this object" options are checked.  Click 'APPLY '.  Do not click on 'OK' you will get "Access denied" yet

    Repeat the steps for each GUID registry and then try and install the update via Windows Update.

    Whenever you see an error in the update Windowsw it generates an error log and stores it in the Temp of Windows folder, normally located in C:\Windows\Temp.  Sort by date to get the last newspaper at the top.

    The error logs are normally preceded by MSI in the form MSIxxxxx.LOG.

    I hope this works if you can not get rid of this error, but I would have preferred that ms fixed properly!

    Good luck

    See you soon

    Pete

    Hello
    Welcome to the Microsoft answers site

    The question you have posted is related to Microsoft Office, and would be better suited to the Office Discussion groups. Please visit the link below to find a community that will provide the support you want.
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    It may be useful
    Thanks and greetings
    Support Microsoft-dieng
    Visit our Microsoft answers feedback Forum and let us know what you think
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/

  • When I use the Client for NFS provided by Windows 7, I'm unable to connect. The "mount \\ip address\share Z:" command fails with the error code "the path not found network".

    Identification of customer's Windows 7 NFS UID GID information

    I am trying to connect to the Windows 7 Client NFS on a server running on a computer (VxWorks) NFS.  I am able to properly connect Client NFS software by a 3rd party on the NFS server.  However, when I use the Client for NFS provided by Windows 7, I am unable to connect.  The \\ip address\share Z: mount"command fails with the error code"the path not found network ".  I can't do a ping of the computer running the NFS server.

    The NFS Client operating system: Windows 7 Ultimate, 64-bit

    Data captured by Wireshark

    MOUNT V1 EXPORT call 3rd party client
    Identification information Flavor: AUTH_UNIX (1)
    Length: 32
    Stamp: 0xc7065970

    Machine name: PC
    UID: 1000
    GID: 1000

    MOUNT V1 EXPORT appeal of the NFS client
    Identification information Flavor: AUTH_NULL (0)
    Length: 0

    It seems that the credentials of NFS Client are not correct.  How can I change the flavor of AUTH_UNIX and the UID and GID to 1000?

    Hello VDAEMP,

    As Eddie and Sudarshan has said, the Microsoft Answers community focuses on issues and problems related to the consumer environment. Please join the public IT pro TechNet forums below:
    TechNet - Windows Server
     
    Thank you

  • ADF_FACES-60097: for more information, see the error log of the server for an entry beginning with: ADF_FACES - Exception during the PPR, #2 60096:Server

    Hi all, I had a problem when using popup to create a new table row.

    I do like in this http://andrejusb.blogspot.com/2009/11/crud-operations-in-oracle-adf-11g-table.html

    but when I click on insert, an error stating:

    java.lang.NullpointerExeption

    ADF_FACES-60097: for more information, see the error log of the server for an entry beginning with: ADF_FACES - Exception during the PPR, #2 60096:Server

    In other cases, when showing Popup, when I clicked on cancel (popup), the display of the error as above. I don't know why?

    Can someone explain to me why. Thank you

    Check your page links if the createInsert operation is present.

    Then check that the getBindings() method returns a value and not null.

    Timo

  • while I connect to my computer with the samsung wave y kies wi - fi computer displays an error as a peripheral denied connection permission, please provide the solution.

    while I connect to my computer with the samsung wave y kies wi - fi computer displays an error as a peripheral denied connection permission, please provide the solution.

    earlier, I used internet and transfer files through this link, but now it is showing the device refused permission. I have checked all the settings, but could not remedy any problem so kindly help me so that I can connect via wifi to my mobile samsung kies.

    Also, I am facing problem in sending files via Bluetooth, and at the same time my mobile can easily transfer the file and the music file actions with my computer via bluetooth which I did not understand.

    Rental offer the solution to both problems. In my computer I have window7 profeessional.

    Marie-Odile THE

    Hello

    1. What is the brand and model of the computer?

    2 have you made any changes to the computer before the show?

    Reinstalling the Kies application and check if it helps.

    See this link:

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    I also suggest you to contact Samsung and check: http://www.samsung.com/us/support/

    Regarding Bluetooth check out these links:

    Open the hardware and devices Troubleshooter
    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    Bluetooth devices do not work correctly on a computer that is running Windows 7:

    http://support.Microsoft.com/kb/980396

    Also see this link: http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devices

    Note: The article mentioned above is also applicable to Windows 7.

    I hope this helps!

  • Error: A connection has been established with the server, but then an error occurred during the connection process.

    Hello

    I have MsSql running in the cluster environment and recently face the problem when there is a security agent installed in MsSql server, which the agent does nothing but only to capture the local database activity. The error led is as below:

    ID from step 1

    Server NIBKSQLCLUST

    Job name LSBackup_DRIB

    Newspaper log shipping backup job step name.

    Time 00:00:02

    SQL severity 0

    SQL Message ID 0

    Operator by e-mail

    Operator Net sent

    Operator paged

    Retries attempted 0

    Message

    2011-03-21 08:00:02.62 * error: could not retrieve parameters of backup for primary ID '26f46141-a676-41b2-8653-11f1b13de43a '. (Microsoft.SqlServer.Management.LogShipping) *.

    2011-03-21 08:00:02.63 * error: could not connect to the server NIBKSQLCLUST. (Microsoft.SqlServer.ConnectionInfo) *.

    2011-03-21 08:00:02.63 * error: a connection has been established with the server, but then an error occurred during the connection process. (provider: Named Pipes Provider, error: 0 - no process is on the other end of the pipe.) (.Net SqlClient data provider) *.

    2011-03-21 08:00:02.63 - END OF THE TRANSACTION LOG BACKUP-

    The process to run correctly when I turned off the security officer. Advice kindly the cause of this problem and is where all configurations should be set / changed in MsSql server.

    Thank you

    Boonlep coulibaly

    Hello

    I suggest you to send your request from the link and check.

    http://msdn.Microsoft.com/en-us/hh361695.aspx

    http://msdn.Microsoft.com/en-us/library/bb545450.aspx

  • Problem with the Archive log in Oracle 11 g

    Hi gurus,

    I'm new in the DBA role and I have real problems with the archive logs - they are written to the wrong place.
    This is my environment:
    Windows Server 2003 Enterprise x 64 Edition; Oracle 11g EE + ASM;
    I did everything according to the instructions.
    I did the following:
    1. install Oracle 11 g software
    2 instance created using DBCA for ASM in the same House and added a no formatted disk as a DATA disk group
    3 database instance created using DBCA mode archive using ASM for data files. I've mirrored controlfiles and redo online records on the C: drive. I created flash_recovery_area and a reference to it when the instance was created.
    4. start to import the data.

    And here's the problem - for an unknown to me reason archive logs are written on 2 places: 1. in the flash_recovery_area, 2; IN MY ORACLE_HOME!

    I opened with EM dbconsole init settings and found that there is a single parameter, that points to this place (standby_archive_dest =' docs in the % ORACLE_HOME%\RDBMS, it is written that it is an obsolete parameter). Is another parameter that I found (LOG_ARCHIVE_LOCAL_FIRST = TRUE - I put it to FALSE), but nothing to help continue to write in ORACLE_HOME.

    How can I stop it? If I can't stop, so what happens in production? Should I manually delete all newspapers of this Archive - it will be madness!

    Try to set log_archive_dest_1 specifically. Example: -.

    ALTER system set db_recovery_file_dest_size = 400G;
    ALTER system set db_recovery_file_dest = '+ ASM_ORADATA42;
    ALTER system set log_archive_dest_state_1 = reporter;
    ALTER system set LOG_ARCHIVE_DEST_1 is 'LOCATION = USE_DB_RECOVERY_FILE_DEST VALID_FOR =(ONLINE_LOGFILE,ALL_ROLES)';.
    ALTER system set log_archive_dest_state_1 = enable;

  • Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."

    Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."  How can this be repaired?

    Hi rebick,.

    Try the troubleshooting steps presented by spirit X in this thread.

    Dena
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Using Photoshop, I have come across a problem, when I launch Photoshop CC (2015), it instantly goes to a blue screen with the error of KERNEL_SECURITY_CHECK_FAILURE, my PC is Windows 10 (64-bit), so please it outside. Thank you

    Using Photoshop, I have come across a problem, when I launch Photoshop CC (2015), it instantly goes to a blue screen with the error of KERNEL_SECURITY_CHECK_FAILURE, my PC is Windows 10 (64-bit), so please it outside. Thank you

    Hi Sammo,

    See this thread: Re: photoshop, 'kernel security check failed'

    Kind regards

    Claes

  • EMCA fails with the error "ORA-01034: ORACLE is not available.

    Hello
    10g R2 on AIX I have the following error:
    emca -config dbcontrol db -repos create
    ......................................................
    .....................................................
    Password for DBSNMP user:
    Invalid username/password. [ORA-01034: ORACLE not available]
    And that's because all oracle processes are runing with:
    ORACLE_HOME=/U00/Oracle/product/10.2.0/Db_1/

    EMCA fails with the error "ORA-01034: ORACLE is not available" and "Name of user and password invalid." For DBSNMP user [ID 550484.1]
    It is said:
    +<moderator edit - removed MOS content>+
    Can I do the reverse and in the script of the emca, add "/" at the end of ORACLE_HOME=/u00/oracle/product/10.2.0/db_1
    ??
    Thank you.

    Edited by moderator - content removed from MOS

    Hi user;

    First of all please do not post details here, its against to oracle interoperability metalink, ID is sufficient for us. Secondly, yes you can, first to save $ORACLE_HOME/bin/emca script like

    CP $ORACLE_HOME/bin/emca $ORACLE_HOME/bin/emca_org

    to change the file number and test

    Respect of
    HELIOS

  • Install RDCman 2.2 the use Remote Desktop on windows server 2003 fails with the error: incompatible version of c:\windows\system32\mstscax.dll

    2.2 RDCman install remote desktop on windows 2003 server util fails with the error: incompatible version of c:\windows\system32\mstscax.dll

    CAN ANYONE HELP?

    Hi Mordi26:

    This could be because windows server 2003 is not updated with the latest version of the Terminal Server client. With terminal services client 6.0 update... It should solve the problem. Here is the link to download:

    http://www.Microsoft.com/downloads/en/confirmation.aspx?familyId=cc148041-577f-4201-B62C-d71adc98adb1&displaylang=en

  • reports that runs with status FINISHED_WITH_ERROR.how to see the error log

    Hello
    I executin the following codes

    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_COMM_MODE, ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_FILENAME,'/U02/oradata/data/reports/PE4.RDF');
    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_DESTYPE, file);
    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_DESFORMAT, 'PDF');
    SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_DESNAME,'/U02/oradata/data/reports/AA.PDF');
    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_SERVER, 'rep_ora_apps');
    v_rep: = RUN_REPORT_OBJECT (repid);
    IN all, REPORT_OBJECT_STATUS (v_rep) in ('MARKET', 'OPENING_REPORT', 'PENDING')
    LOOP
    message ("status is ' |") REPORT_OBJECT_STATUS (v_rep));
    i: = i + 1;
    If I have > 100 then
    "exit";
    end if;
    END LOOP;
    message ("status is ' |") REPORT_OBJECT_STATUS (v_rep));

    ----------------
    The messages I've had are

    IN QUEUE
    IN QUEUE
    IN QUEUE
    IN QUEUE
    RUNNING
    RUNNING
    RUNNING
    FINISHED_WITH_ERROR

    Could you please tell me how I can see the error log?

    Concerning

    Hello

    to see the error:

    1 generate the error again
    2. Enter the following URL in your browser:

    [http://:/reports/rwservlet/showjobs? rep_ora_apps = server]

    You will see the last task. Click x status to see the error.

    Kind regards
    Joe

Maybe you are looking for

  • Satellite M70-340 keyboard problem

    Certain keys; "capslock, enter, del, arrowkeys, z, x, c, v, b, n, m and some more my M70-340 laptop stopped working since yesterday." Could someone tell me please how to fix this problem. Your help is very appreciated. email is [email protected]

  • Installation of memory on my w520

    I have printed the instructions for adding memory to my new W520 and had no problem adding the first stick of 8 GB on the lower access panel, but when it came for the removal of the keyboard to the second empty slot I was afraid to break the keyboard

  • Lenovo A7010 unlock

    Hello I intend to buy the smartphone Lenovo A7010 in India. I will be in Australia for a few months. I just wanted to know if the phone needs to be unlocked or local Australian sims are compatible in the phone?

  • HP jet P1606dn laser

    I use a HP LaserJet P1606dn and said that this is supposed to make 2 copies of faces.  I can't find the manual that came with the printer and I can not understand how to do this.  Can someone help me with this?

  • 3rd themes part, sometimes does not work on Windows 7?

    Basically, that's what my theme looks (custom made by someone, credits to them) and it all works now, everytime I try to change it, it gives me the appearance of original windows, something like that in the .gif http://support.kaspersky.com/images/su