Sql*plus hiding username and password

Hi All,
I was wondering if there is a way that I can avoid
having to specify username and password when I execute
sqlplus and sqlldr on Unix systems.
I know that If I don't specify a username or password
these programs will prompt for one. That is fine
when I am executing thing in a interactive shell but
if I want to execute these programs from a cron job
I need to have the username and password in my crontab
file and when they execute other users can see my
username and password by executing ...
ps -ef
... How can I correct this problem?

Actually, Oracle Corp. provides a very neat solution to the password problem.
They have a program, called 'hide' which they provide the source for.
Search on Metalink for Note 1009091.6: "HOW DO YOU HIDE USERNAME/PASSWORD IN PS?"
You compile it on your system and you when you want to invoke sqlplus, for instance, you run 'hide sqlplus userid/password'.
The difference is, that when you run a ps, all you see is sqlplus, without the userid and password displayed.
You can rename sqlplus to something else and create a shell script called sqlplus that calls hide.
That way is transparent to the user. Everyone just runs sqlplus like they always have.

Similar Messages

  • SQL Plus / Oracle - Username and Password Troubles

    Hello all
    I have just download Oracle Database 10g Express Edition for Linux.
    When i use the command 'connect' with SQL Plus i am required to enter a username ans password.
    What is the default username and password, or where can i find it?
    Many thanks

    1. If you installed the express edition, there is another step. Go to your GUI menu->Oracle->Documentation. Those names are not exactly right, but you should be able to figure them out from that
    2. You are missing a post install step which the install documentation will tell you from step 1. If it is a regular Linux, you drop to a terminal and type something like "database configure". Look at the install documentation, it will tell you.
    3. Do you have Apache running? You need a web server for the Oracle web interface to work
    4. The error message you got means exactly what it says. That being said, you can also get this error message when the database is running. If you do, it is because you forgot to include a connection on you command:
    connect sys/manager@xe
    OR
    connect sys/manager@localhost:1521Since you don't know the passwords, I assumed you did not run the configure step above since it asks for the password when you run it.
    Loyal

  • Hiding usernames and passwords

    We are attempting to access a form through a URL link from a
    web page. The URL contains the username and password, but we
    would like to hide this. We are on Forms 6i patchset 8. Reports
    has a mechanism of hiding usernames in the url by altering the
    config file. Is there any mechanism in forms to achieve this
    result. Any help is appreciated.
    Thanks.

    Can you check out the patch 8 white paper on the forms page. It has a section about passowrd hiding there.
    I think that will help.
    Regards
    Grant Ronald
    Forms Product Management

  • Hiding Username and Password in Web Report URL

    Hi there,
    I am calling a report from my webforms using the WEB.SHOW_DOCUMENT built-in. The problem is that when using this, when the report or the parameter form is being displayed on the browser, the username and password is also displayed on the browser's URL bar with other report parameters.
    Is there any way to surpress or hide the username and password? Please help as this raises some security issues.

    First off make sure your form
    logs on using an ON-LOGON trigger
    using the logon built in. Inside
    a form level ON-LOGON trigger put the
    following code (i.e.)
    logon('username','password@database');
    The password and database are concatenated together.
    Then you can call reports without
    puting the username and password in the
    URL. Here are two examples.
    web.show_document (i.e.)
    web.show_document('URL_HERE','_blank');
    or via a run_product (i.e)
    Run_Product(REPORTS,'admin_req_snapshot',SYNCHRONOUS, RUNTIME, FILESYSTEM,plist,NULL);
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by hkpang ([email protected]):
    Hi there,
    I am calling a report from my webforms using the WEB.SHOW_DOCUMENT built-in. The problem is that when using this, when the report or the parameter form is being displayed on the browser, the username and password is also displayed on the browser's URL bar with other report parameters.
    Is there any way to surpress or hide the username and password? Please help as this raises some security issues. <HR></BLOCKQUOTE>
    null

  • Check if username and password passed are valid?

    hi,
    i've been asked to create a shell script that accepts a username and password which i then need to check against the database..
    but the script won't be running any sql commands.. it will run another script that also accepts a username and password.
    what i have so far
    sqlplus -s $ora_user_pass << EOF
    set echo off
    set heading off
    select sysdate from dual;
    exit
    EOF
    ret_code=$?
    if [ "$ret_code" -gt 0 ]; then
      echo "Invalid username and/or password"
      exit
    else
    ....this works ok but it's a little dirty.. when the username and password are incorrect it shows a bunch of errors instead of the displaying "Invalid username and/or password".. this is coming from the sqlplus.
    i'd appreciate any other suggestions.
    thanks
    allen

    hi,
    the sqlplus version is...
    SQL*Plus: Release 8.0.6.0.0 - Production on Wed Apr 8 03:09:10 2009
    (c) Copyright 1999 Oracle Corporation.  All rights reserved.the error that i don't want displayed in the screen is...
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Invalid option.
    Usage: CONNECT <username> [AS SYSDBA|SYSOPER]
    Invalid option.
    Usage: CONNECT <username> [AS SYSDBA|SYSOPER]
    unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    Invalid username and/or passwordthanks
    allen

  • Hide username and password

    Dear all ,
    I am using 10g Application server .
    How can i hide username , password and connect strig while running report on web by web show document ?

    one alternative solution for hiding username and password is
    u can use frames.
    all u hav to do is the connection code should be written in the frame.
    cal this frame from where u hav to cal the report.

  • What are the defaul username and password for SQL Plus ?

    hello, what are the defaul username and password for SQL Plus ? i'm using the client 11.2.0.1

    You'll need to download the full database installation files for the platform you are using. They are two .zip files, about 2.2 gig total.
    I'm not going to give you the link because you should be able to find it easily. You have to read and accept the license agreement anyway.
    When you install it, you'll be given several options about the type of database you want.
    But before you install anything, you should read the installation manual for your platform.

  • Username and Password for Forms 6i SQL Plus 8.0

    What is the default username and password for SQL Plus 8.0 that comes with the download of forms 6i from OTN. I have tried system, scott, and manager respectively and none of them work. Please help.
    Thank You

    My DB instructor told me to try the following. I found the first one to work for me only the host field was empty. Good luck!!
    User scott
    Psswd tiger
    host: orcl
    User sys
    Psswd change_on_install
    host orcl
    User system
    Psswd manager
    host orcl

  • SQL Plus username and password

    I have downloaded Oracle 10g from a CD I received in my Oracle Developer Book and I can't do any of the chapter assignments, because it is asking me for username and password. I have registered at the oracle website and received a keycode, but it never asked me to enter the keycode when downloading the software and I was NEVER asked to set up a username and password. I need help!!! I need to use this in class. What can I do????

    Ask your teacher? If you're working in a class, hands-on help from an experienced teacher will be much more useful than anything you'll get here.
    I don't know what version of Oracle 10g you are trying to work with. Is it Express Edition (XE)? Is it Enterprise Edition or Standard Edition (EE or SE)?
    I don't use XE, so I can't comment on that in details. But generally, whenever you install Oracle, you'll be asked, as part of the installation, to supply a password for the SYS and SYSTEM user accounts. The relevant page of the installation wizard usually gives you the option of supplying one password for all built-in accounts or supplying a different password for each.
    So: at least half your question can be answered by saying a workable username will be "sys" or "system". But I can't tell what password you supplied during the software installation itself.
    It's got nothing to do with the password you supplied to be able to download the software, though. That's your OTN username and password, giving you access to this site and others. Nothing whatsoever to do with operating an Oracle database.

  • SQL REPORTING USERNAME AND PASSWORD

    I use SQL Server Reporting Services for reporting purpose and create reporting using and attach database then when I deploy any report it shows me username and password in SQL Server Reporting Service.
    So what does it mean by password and username and where do I get this username and password for SQL Server Reporting Service?
    i have not any password in windows and in SQL Server Database
    HERE IS PICTURE
    So what can I do?

    Going to that link will not run/execute the report.  It should either prompt you to login or login you automatically and bring you to the landing page.  If you are not being prompted to login, you should consider looking at making sure all the
    appropriate services are running by looking at SQL Server Configuration Manager (i.e., the database engine and reporting services).  It's also possible that your browser is configured to login you automatically if you are not being prompted to login,
    which could be issue if the account you are logged into your computer as is not an administrator. 
    The next thing to consider is disabling any antivirus or security software that may interfere with the connection.  Lastly try different browsers (e.g., firefox, Chrome, and IE) and see if you are getting any different error messages.  Also consider
    substituting "lenovo-pc" with "localhost".  I have also seen the issue described in this article where you may need to disable the loopback check. 
    http://www.sqlservercentral.com/blogs/sqldownsouth/2009/09/28/reporting-services-disable-loop-back-check/
    You aren't going to be able to deploy anything unless you can connect to SSRS via a web browser.

  • HP 8500 PLUS-scan to email - "SMTP server want approval- control SAMTP username and password"

    I have this brand new PRO 8500 PLUS machine, and everything is working except for the "scan to email" function.
    I did the setup in the web interface, in which I configured my GMAIL account to be the outgoing account in the printer.
    In the end I pressed "save and test" and it reported OK! I used my full GMAIL adress as SMTP username, and my GMAIL password as password.
    However, when I scan a paper and try send it to myself (same adress as confgured as outgoing in printer) it says something like(bad translation...)
     "SMTP server demands approval - check that SAMTP username and password is set" 
    Network config is:
    IP adress: 192.168.0.183
    Subnett mask: 255.255.255.0
    Standard gateway: 192.168.0.1
    DHCP
    Primary DNS server: 192.168.0.1
    Secundary DNS server: 0.0.0.0
    Printer is connected wirelessly to a DLINK DIR 655 .
    This question was solved.
    View Solution.

    Hey Cartman9090,
    Alright i did a little bit of researching and this is what i was able to come up with. There are two separate settings that perform two different actions.
    1. Under settings in the printer EWS you have email servers and individual settings for alerts. The email server settings under setting in the ews allow you to set up the product to send problem and status alerts to anyone through e-mail messages. When this function is configured, alerts are automatically triggered about supplies, paper-path status, and other service and advisory information.
    2. Under scan when configuring the scan to email in the EWS this is for configuring the e-mail address which will appear in the FROM portion of the e-mail message sent by the printer. The device allows you to scan documents and send them to one or more e-mail addresses as attachments—without additional scanning software. You do not need to scan files from your computer and attach them to e-mail messages. In addition to send scanned files as emails the device must use a outgoing email profile configured with an outgoing email account.
    **Click the KUDOS star on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    (Although I am employed by HP, I am speaking for myself and not for HP)

  • SQL getConnection doesn't pass Username and Password

    I am trying to connect to a secure Microsoft Access database.
    I connect to the database but the username stays as Admin with an empty password. And unfortunitly Admin doesn't have the permissions that I need.
    This is part of my code:
              Properties DBCreds = new Properties();
              // Put the Username and Password into the properties
              DBCreds.setProperty("user", STRING_USERNAME);
              DBCreds.setProperty("password", STRING_PASSWORD);
              // Get the database driver
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              catch (ClassNotFoundException e)
                   e.printStackTrace();
                   System.out.println("Class not found for the JDBC to ODBC Driver.");
                   System.exit(1);
              // Connect to the databases
              System.out.println("Starting Connections to the Databases");
              System.out.println("Database: General Tables (" + DATABASE_GT + ")");
              try
                   conn_gt = db.getConnection(STRING_DBCONNECT + DATABASE_GT,DBCreds);
                   sql_gt = conn_gt.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
              catch (SQLException e)
                   e.printStackTrace();
                   System.out.println("\nERROR: Failed Connection to General Tables");
              }Yes I am using a Properties varible to pass the username and password but I have also tried using the getConnection(URL,USERNAME,PASSWORD) and it didn't work.
    Any help would be greatly appreciated.

    Hard code the connection string and the user,
    password using getConnection(String url, String user,
    String password). Still is admin
    Make sure that the meta data call is right after the
    connection call.It is.
    Once you have done that then run again and see what
    the meta data returns.Still Admin
    If it still returns admin then I would suppose that
    the meta data is going to return that regardless of
    what you do. (I would suspect that this might be the
    case.)Maybe but the thing is it is only using the Admin security settings while I need to use the USERNAME security settings
    If it returns the correct name then I would suppose
    that either you are setting up the properties wrong
    or the getConnection(String url, Properties info)
    doesn't work.Ok here is my problem revised... Admin doesn�t have read properties on the Zonas table, but the username that I have does. The part of teh code that is failing is:
              System.out.println("Opening Zonas table");
              try
                   missionaries = sql_gt.executeQuery("SELECT * FROM Zonas");
              catch (SQLException e)
                   e.printStackTrace();
                   System.out.println("FAILED!!\n" + STRING_DBCONNECT + DATABASE_GT);
              }The output is:
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Record(s) cannot be read; no read permission on 'Zonas'.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3111)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
    at Map.main(Map.java:77)
    FAILED!!
    jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ=p:\general tables.mdb

  • When using a URL it always asks for a username and password

    I’ve just started using the Windows version of OracleXE.exe with Apex3.1 and I would like to create a menu web-page holding a list of URL’s that can be configured by inserting records into a simple table. I am having problems with multiple authentication user-name and password. I can read the table and create a URL within a web-page swapping the text “#SESSION#” with the &Session.
    But each time I open a new application within the same schema I get the login page (when that user has already connected with their password).
    Test data:
    create table x_url_table(url varchar2(256),display_text varchar2(32));
    insert into x_url_table values ('http://127.0.0.1:8080/apex/f?p=106:1:#SESSION#:::','query country details');
    insert into x_url_table values ('http://127.0.0.1:8080/apex/f?p=108:2:#SESSION#:::','simple select as a test ');
    From the Application Builder page I choose:
    "Create" -> "Create Application" -> “add Page" [I entered the table name x_url_table[and implementation set to classic]] -> “Next” [no tabs] -> “Next” [no for shared components] -> “Next” [Application Express for Authentication] -> “Next” -> “Create”
    When I press the run-page-icon it displays the URL like below(if I click-it it does not open webpage):
    http://127.0.0.1:8080/apex/f?p=106:1:#SESSION#:::     query country details
    http://127.0.0.1:8080/apex/f?p=108:2:#SESSION#:::     simple
    I then tried “edit-page”-> “edit-region” -> “region source” I swapped the SQL for this:
    SELECT
    replace(a.url ,'#SESSION#','&SESSION.') as url
    , a.display_text
    FROM x_url_table a
    Plus I then added a link “edit-page”-> “edit-region”-> clicked the tab “Report Attributes”->clicked the “add column link”
    Scroll down to “column link”
    “Link Text” I set to #DISPLAY_TEXT#
    “Target” choose the L.O.V option “URL”
    “URL” I set to #URL#
    Push apply button
    Press the run-page icon it displays everything correctly (see below) but when I click-the-URL it asks me again for the login screen with a user/password request.
    Can this be bypassed?
    As, I am already connected to the schema using the same username and password!
    How do I allow my current session to automatically log me in to a different page?
    link      Url Display Text
    query country details http://127.0.0.1:8080/apex/f?p=106:1:1331572188999480:::     query country details
    simple select as a test http://127.0.0.1:8080/apex/f?p=108:2:1331572188999480:::     simple select as a test
    so what do I need to do login just once!

    Steve,
    See this thread:
    Application Link
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • What are EBS Database Username and Password

    Hi Freinds .........just installed EBS Successfully..............When i am using SQL PLus as "Conn / as sysdba"
    it is not connecting as similar to Oracle 9i/10G.............can u please Tell me what are The Default usernames and Passwords are ???]
    Thanks In Advance

    Hi user;
    i have installed Oracle R12If you are making E-Business Suite installation by default 2 env file is creating. One is for dbtier other is for application tier. If you want to work wiht some job related wiht EBS on your OS, than you have to source(run) those env file. For instance if you want to apply patch for your Application than you need to login as applmgr user than you have to source env file, for can run adadmin or adpatch utulity
    It same for db side too
    All those are covers under R12 Application Concept manuel, please check below:
    For r12.1.1:
    http://download.oracle.com/docs/cd/B53825_01/current/html/docset.html
    For r12:
    http://download.oracle.com/docs/cd/B40089_10/current/html/docset.html
    Regard
    Helios

  • Username and password for 8i lite

    I'm running Oracle 8i Lite on NT 4.0. I've just installed 8i Lite and it asks for username and password. Anyone knows if it takes any default username and password? I was using the same username and password that I use to log into OTN web site, but it didn't work.
    null

    Oracle Lite has a default user called
    SYSTEM
    with no password at all - but the tools
    delivered oracle lite need a password
    string, so anything is ok as password.
    E.G. when using SQL*Plus, use the following
    connect string:
    system/dummy@odbc:polite
    or in the GUI sql*plus, enter "system" for the user, "dummy" for the password and "odbc:polite" for the database/service name.
    null

Maybe you are looking for

  • Another pdf export problem with graphics missing

    well, it seems that there have been quite a few export probs w/pdf. i created some somewhat complex graphic files (wine labels) using keynote. then transfered them over to pages so that i would be able to print them more easily. when transfering them

  • Convert csv to Excel

    Not sure if this is a Java or an MS Excel issue, but here it goes. In a web application I constructs an CSV file and open in Excel, the point is that I want automatically to apply an Excel template when the file is open in the client. How can I do th

  • Is User Exit's support ABAP Objects?

    Hi Experts, Is User Exits supports ABAP Objects.  I am planning to  implement  the ABAP classes in User exits to fill Query Variables. Is it possible? Thanks & Regards

  • Google chrome flash media server problems.

    google chrome constantly asks me to update the flash media yet on the adobe site it says that it already automatically updated. what do i need to do>?

  • Black Screen with Audio for Downloaded TV Shows from iTunes

    Hi, When I try to watch TV shows that I downloaded from the iTunes store..I just get a black screen with audio. I've tried un-installing and re-installing. I'm currently running version 10.1.1.4 on my Win XP Pro machine. I downloaded the entire "Jayc