Setup automated login to Oracle database

Hi,
I am facing a problem while connecting to the Oracle database automatically.
I want to setup an SQL query on the database which is scheduled to run every midnight. The SQL query then populates an Excel spreadsheet with the results. I was able to schedule the SQL qeury, however, the problem is that it requests the user to type in the password every time it runs. I want to store the username and password in the connection string/driver settings to avoid uder interaction.
The following are ths current settings :
1. In Microsoft ODBC setup for Oracle settings,
DSN = DDTS
Description = (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=bee1.pcs.mot.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=WSDTOOL1)))
Username = myUserName
Server = DDTS
2. In MS Excel, I created the Data Source and set the driver to MS ODBC for Oracle.
I tried to save the UID=xxx and PWD=xxx in the (a) Connection String for the ODBC Setup (b) in the tnsnames.org, but none of the options work. It still needs the user to enter the password everytime it executes.
Can someone help ?
Thanks !

Hi Justin,
Thanks for your reply.
There's no particular reason as to why I chose MS ODBC driver rather than selecting the Oracle ODBC driver.
As you had suggested, I tried to use the setup the data source using the Oracle ODBC driver, but I am getting a connection error : 'ORA-12154: TNS : Could not resolve service name Driver's SQLSetConnectAttr failed'. I guess its something to do with my settings, but I am not sure what's wrong. Here are the settings for the data source with Oracle ODBC driver :
Data Source Name : myDDTS
Description : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=bee1.xx.xx.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=WSDTOOL1)))
Data Source ( Service Name) : WSDTOOL1
Data Source ( UserID) : myUserID
Also, could you let me know which registry entries need to be modified to save the userID and password ? ( I am a newbie with Oracle).
Regarding your question, the ODBC connect string I was using with MS ODBC driver was : (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=bee1.xx.xx.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=WSDTOOL1))). The connection was successful and the query worked fine, the only problem I was facing ( and looking for a solution ) was that a dialog box used to pop up asking for the password every time the SQL query is executed which I want to avoid. I want to save the password so that the query runs without any user interaction.
Thanks for your help ! Waiting for your reply....

Similar Messages

  • How to know last login in oracle database 9i

    hi all,
    I want to know the last login in oracle database 9i.
    Can some one help me.
    Thanks

    Hi,
    Do you have auditing enabled then you can get details else
    Enable it and execute the below one - then login and logoff times will be recorded for users
    audit connect;
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • Survey:  Automated Upgrade of Oracle Databases

    Hi Folks,
    We would like to invite interested customers/partners to participate in a survey that we have created, to gather feedback and requirements input about automated upgrade of Oracle databases. If you would like to participate in this survey, please use the following link:
    http://www.zoomerang.com/Survey/survey-intro.zgi?p=WEB2298XXXQVW8
    Thanks!

    <B> Funny survey, thanks! </B>

  • Unable to login to Oracle Database 11.2 XE Beta

    Hello everyone:
    Trying to login to Oracle Database 11.2 XE Beta, the fields are workspace, username and password. How do i know the workspace.
    Thanks

    Where are you trying to log in?
    If you go to Get Started (http://127.0.0.1:8080/apex/f?p=4950), the Database Home page should open up.
    There click the APEX "tab" or red button, login if requested with a database username, and you'll get to create an Apex Workspace.
    See the XE [url http://download.oracle.com/docs/cd/E17781_01/admin.112/e18585/toc.htm]Getting Started Guide - 6.1. Getting Started with Application Express
    For exploring APEX, the [url http://download.oracle.com/docs/cd/E17556_01/welcome.html]Documentation library for APEX 4.0 should come in handy.
    Edited by: orafad on May 28, 2011 12:52 PM

  • How to setup em for all oracle database templetas X86/X86_64 /10g/11g

    Hi: everyone know about Oracle database templates X86/X86_64 /10g/11g all not setup em.
    I have builder all Oracle database templates X86/X86_64 can not start em
    https://hostname:1158/em
    $emctl start dbconsole
    to display Oc4j configurate issue......
    I have do
    $emca -repos create
    $emca -config dbcontrol db
    $emctl start dbconsole
    but still not login em.
    Everyone can test it,why can not running.
    How to config about em.
    thank.

    Hi:
    $emctl status dnconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
    Copyright (c) 1996,2007 Oracle Corporation .All righs reserved.
    https://majin148:5500/em/console/aboutApplication
    Oracle Enterprise Manager 11g is running
    I am also to try:
    #chkconfig iptables off
    https://192.168.100.148:5500/em

  • Bypass Login with Oracle Database

    hello,
    I am using Oracle forms 6i.
    i want to create an application that does not require any connection with Oracle database.
    My Application fetch all its data from an Excel file.
    I do not want Login with Database,so i want to byapass it.
    How can i do it..

    Akarsh wrote:
    hello,
    I am using Oracle forms 6i.
    i want to create an application that does not require any connection with Oracle database.
    My Application fetch all its data from an Excel file.
    I do not want Login with Database,so i want to byapass it.
    How can i do it..Hi Akarsh,
    Use ON-Logon trigger at form lebel
    and put your connection string. then when you run this , it will not ask for connection identifier.
    Hope this works..

  • Which version of Oracle database is certified on  Windows 2008 R2 ( 64-bit)

    We have a Microsoft Windows 2008 R2 (64-bit) server.
    I wanted to know which Oracle database version is 100% certified on the above OS.

    Hi Sirini;
    10.2.0.5 is supported - see MOS Doc 1061272.1 (Statement of Direction: Oracle Database 10g Release 2 Client (10.2.0.5) with Microsoft Windows 7 and Windows Server 2008 R2)Correct;
    11gR2 is also supported - see MOS Doc 867040.1 (Statement of Direction: Oracle Database 11g Release 2 – Microsoft Windows 7 and Windows Server 2008 R2)There is a setup on this link:
    Oracle Database 11g Release 2
    (11.2.0.1.0)
    Microsoft Windows (x64) File 1, File 2 (2GB) See All
    I am little bit confused for this, as you mention note and also certification matrix says 11gr2 certfied with Win2008-64 bit. But there is no specific setup like win2008-64 bit, there is only Microsoft Windows (x64) setup
    By the way for 10gR2 on win 2008 64 bit platform there are 2 setups. Those are:
    Oracle Database 10g Release 2
    Oracle Database 10g Release 2 (10.2.0.4) for Microsoft Windows Vista x64 and Microsoft Windows Server 2008 x64
    Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows (x64)
    So i had issue for my client and oracle worker support me to use 10.2.0.4 for my issue, not second setup. So for 11gR2 could be work for Microsoft Windows (x64) but i am not sure %100 coz never tried before.
    i appreciate, If someone share their experience to make installation 11gR2 on win2008-64 bit wiht Microsoft Windows (x64) setup
    All those upper setups can be found at:
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
    I do not believe 11gR1 is currently certified with Win 2008 R2.Please check below link:
    http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
    Oracle Database 11g Release 1 Standard Edition, Standard Edition One, and Enterprise Edition
    (11.1.0.7.0)
    Microsoft Windows Server 2008 (32-bit) (1.9 GB) | See All
    Microsoft Windows Server 2008 x64 (1.9 GB) | See All
    Regard
    Helios

  • Setup tcp connection to external oracle database

    Hello All,
    I have a requirement to setup a tcp connection in SM59 from BI 7 to an external oracle database.
    I am through with the first step of modifying the tnsnames.ora and now I am able to connect from OS level of BID server to this external oracle database O1.
    But, I want to know what options do I need to use to setup a tcp/ip connection?
    How should I register the program (if required)?
    Can anyone please advise whats the best way to resolve this issue?
    Thanks,
    Antarpreet

    Hi,
    Yes, We have installed Oracle Client.
    No, We couldnt find the libdora.dll file in the SAP Server system. From where can we find this file to install ??
    Thanks & Regards,
    Saurabh.

  • Login page user name and password for Oracle Database

    Hi,
    I created a login.jsp page with username,password and a submit button. How can I validate this username and password from my Oracle database username and password?
    I am using NetBeans5.5 with Tomcat5.5.17. Right now I have hardcoded username and password in my persistence.xml.
    Anyhelp?

    Thnx BalusC for ur reply. Let me explain my issue.
    I have created a login page. and user is able to enter user name and passowrd on this page. User is supposed to press a 'submit' button when user enters username and password to connect to database. What should I write in 'submit' button's action to let user allow to proceed if username and password are correct i.e. username and password of my oracle database. (usename=scott and passowrd=tiger).
    plz help.

  • How to setup oracle database to archivelog mode and auto delete ?

    Oracle 11g R2
    - How to setup database to archive log mode and have oracle only save 24 hours of archive logs
    and delete the rest. So at any given time I will have only 24 hours of archive log and not more.
    So only 1 day of archive logs.
    - Let me know the database parameters I need to setup to accomplish this.
    - I don't want to use the RMAN
    - I am not setting up the database to archive log mode for recovery purpose. I am setting up archive log mode
    so we can use the log miner tool to dig up achives to see log activity for any performance & tuning.
    Edited by: johnpau2013 on May 9, 2012 6:09 PM

    johnpau2013 wrote:
    Thanks everyone for there responses.
    I need to rephrase and explain everyone as what I wanted to do exactly. This might help everyone understand and suggest me.
    We have oracle database 11g r2. Its a test database. Nothing is critical. We use EXPDP utility to backup the entire database every night. Which is enough for us to recover incase something happens. Even if we loose some data. That's fine.
    We are testing our web application on this oracle test database for performance & tuning.
    One thing we have noticed is that the redo logs are switching very frequently. 50MB each log file and there are 5 logs. each log switches every 40 seconds. So we wanted to see what is getting written in this redo logs. We wanted to use the LOG MINER tool in OEM to read the logs. It needed our database to be setup in archive log mode. So the log miner can read the archive logs and show us the sql's within the archive logs.
    Now when we setup the archive log mode on our database. By default the archive logs destination was set to flash recovery area ( may be oracle default archive log location is flash recovery area folder).
    We have setup the db_recovery_file_dest_size to 100GB. Now within 2 days we have filled up the flash recovery area folder. Database was frozen. Then we realized that its because oracle couldn't write archive logs. Because it reached the 100GB. Then we physically deleted files in the flash recovery area folder. Thinking it would help us start the frozen oracle database. But it didn't . The we realized that we are doing something wrong. As Oracle does not know that at OS level we deleted the files. Then temporarily we changed the db_recovery_file_dest_size to 130GB and were able to start the oracle database. Later we turned OFF the archive log mode.
    Being a rookie DBA we would have not read something properly.
    Finally:
    We wanted to know how to always keep only 1 day of archive logs (only for our performance tuning ) and not more than that. All we need this 1 day of archive logs is to use the log miner to read them. Backup is NOT our priority here. Only be able to read the archive logs from LOG MINER is PRIORITY.
    Correct me if I am wrong.Okay, so its making much more sense now, thanks for explaining your requirement.
    Database won't honor anything that you would do over the o/s without telling it. Your deletion of the archive log from the o/s location is NOT updated in the control file of the database and that's why, even when you had deleted the entire 100GB , from the db perspective, the space was still marked as used. This is the same which would happen even if you would increase the space from 100gb to whatever size as well. To delete the space, you would need to update the database's control file and that you can do from RMAN using its two commands , crosscheck backup following with deleted expired backup . The first command would find that which database backup files are NOT on the o/s which are shown in the control file and would mark all of them as expired. The second command would simply delete those expired files. This would update the control file and you would have your 100gb or whatever space, given back to you.
    To keep the archive logs of just one day, set up that Retention Policy for RMAN to either number of copies using the Redundancy option(default and set to 1) or Recovery Window. I believe for you Redundancy would be a suitable choice but you can have a read and play around with it. Setting it up would mark the files as Obsoleted and finally, you can write a small RMAN script to delete those obsoleted files.
    Now, what I don't understand is that why you want to keep on generating the archive logs just for the log miner? If you would have generated them once and figure out the reason for extensive redo generation(did you try increasing the redo log file size, 50mb seems to be smallish) , I don't think that there is any reason to keep on generating the archive logs still .
    And last part, for your question asked about that whether we can use RMAN to put the db in the archive log and is it a backup tool, yes and yes.
    HTH
    Aman....

  • Multiple Oracle databases in Sun cluster 3.2 (without RAC setup)

    There are 2 Sun SPARC (Sun Fire T2000) servers with Solaris 10 (05/09) OS and Sun Cluster 3.2 software. We need two different Oracle databases & instances (Oracle 10g R2 without RAC) for an application. The first database is for Production and need to be configured in the first node & Shared storage disk and need high availability. This database should run from the second node if the first node fails. The second database is for Quality/Test and it is prefered to be running in the Second node for better load distribution. This DB doesnt require any failover.
    The shared storage is Sun SE 3510 FC and multiple LUNs can be created for different databases..
    Is it possible to configure two different resource groups (one for Quality and other for Production) and make the first node primary for Production RG, and the second node primary for Quality RG and thus distributing the load on 2 servers ? If possible, what special configuration required in Sun OS and Cluster side ?
    Appreciate if you can give some configuration procedures/documents for this multi-master cluster setup..

    You can configure two resource groups, such as:
    # clrg create -n node-a,node-b prod-rg
    # clrg create -n node-b qa-rgand you configure the required resources (disk groups / file systems, logical host, oracle listener, oracle server) as described within
    [http://docs.sun.com/app/docs/doc/819-2980?l=en&a=expand|http://docs.sun.com/app/docs/doc/819-2980?l=en&a=expand]
    Note that this is not really called a "multi-master" configuration - that has a specific meaning for a resource group (see [http://docs.sun.com/app/docs/doc/820-4682/babefcja?l=en&a=view|http://docs.sun.com/app/docs/doc/820-4682/babefcja?l=en&a=view] ) for details.
    With Solaris Cluster all nodes part of a cluster are considered active and can host resource groups. You can have any number of resource groups running, where a subset runs one one node, another subset on other nodes. The nodelist property of the resource group defines where it can run, the first node in the list is the preferred primary.
    You can even define resource group dependencies or affinities between the resource groups. Like you could define a negative affinity between qa-rg and prod-rg, such as if prod-rg needs to failover to node-b (since e.g. node-a died), it would offline qa-rg. Details for that kind of possibilities are described at [http://docs.sun.com/app/docs/doc/820-4682/ch14_resources_admin-35?l=en&a=view|http://docs.sun.com/app/docs/doc/820-4682/ch14_resources_admin-35?l=en&a=view].
    Regards
    Thorsten

  • How to setup my c# command line application to a remote oracle database?

    Hi all,
    I will like to ask, how do I setup my C# program to be able to connect to a remote oracle database?
    More information:
    - I have an oracle database express version running on my PC.
    - I am able to run and get data from the database on the same PC.
    - But when I bring my application over to another PC within the same LAN. It does not run and given me an error stating "The provider is not compatible with the version of Oracle client".
    What do I need to do on the Client PC so that I am able to communicate back to the server database?
    Many thanks!

    This is the XE forum, not the .NET programming forum, but this might be helpful:
    http://www.codeproject.com/Articles/18692/Instant-Oracle-Using-C

  • Oracle Database 10.2.0.1.0 setup for Microsoft Windows not opening

    I've downloaded the Oracle Database 10g Release 2 (10.2.0.1.0) for Microsoft Windows in my PC.
    However when I double click the setup.exe,it doensn't open up.Nothing is happening..Could someone provide me thoughts about what could be the reason and how to solve this?
    Regards,
    Bhagat
    xxxxx

    The setup.exe usually takes a while to start the Oracle Universal Installer, it depends upon the machine speed and capacity. Wait for more time and see if it starts. Check if your machine/os meets the system requirement.
    http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14316/reqs.htm#BCFHFECH
    Hope it helps,
    Babu Rangasamy

  • Can anyone help me with a user login script on php for Oracle database?

    I have a script which somehow is not working well. Can anyone give a good script (for Oracle database) for user login and validation and change password? I will be grateful
    JJZ

    http://www.oracle.com/technology/pub/articles/deployphp/seliverstov_deployphp.html
    http://www.oracle.com/technology/tech/php/htdocs/php-oracle-tutorial.html

  • Unable to login to the database with Oracle login ID from today

    I have an Oracle user (jjcdba) through which I login to the database.
    From today morning, I am unable to login to the database and I am getting this error.
    $=> id
    uid=123(jjcdba) gid=3203(jjcdba)
    [jjcdba@jjcprd04:/jjc/orasw10/oracle/product/10.2.4]
    $=> sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Oct 5 04:22:31 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01031: insufficient privileges
    Enter user-name:Could someone please tell me how to troubleshoot this issue. I need to get into the database urgently!

    Hi,
    jjcdba user should be the member of "dba" group to enjoy the OS authentication otherwise you would need to use the sys password to login to the database. Please make sure that "dba" os group exists and make this user member of this group.
    Salman

Maybe you are looking for

  • How to avoid use of function module in case of background jobs?

    Hi ,        I am working a file tranfer interface .Functionality is to extract file either apllication or presentation server , and process the file  through bapi , send the  result in their respective server. This program should run through batch jo

  • How to edit favorite bar in ipad?

    I hate this new thing after I updated to iOS 7.0.2 when every new Safari tab will open with favorites. I want the new tab to open to Bing but i dont know how to change that. Anyone can help?

  • Software Raid 5 - Performance

    Hi all, we have a problem with a software RAID 5. Its read performance is acceptable (61 MB/s via UFS filesystem) while its write performance is very very bad. 3 MB/s through UFS filesystem is not acceptable for a machine with 6 1.35 GHz CPUs and 7 v

  • Error in pa40 & Work schedules

    Dear all, Kindly help me out to solve the error...... 1)Thread in pa40, while hiring an applicant.. (error message showing: position is not available for the start date of the infotype record. Diagnosis: The position is available in the position tabl

  • Unable to update Lumia 620 updates

    In my Lumia unable to update amber update. When I check software update, its showing your phone is updated . Please tell me how to update