Running an Oracle Database Job as Administrator

I have created an Oracle Database Job that executes a batch script. This batch script is supposed to creates some text files. However the batch file doesn't create the text files unless you run it as an administrator. How do I set the Oracle job so that it executes the batch script as an administrator?

Try the usual DBA/ALL/USER prefixes for dictionary views:
SQL> desc dba_scheduler_credentials;
Name                                      Null?    Type
OWNER                                     NOT NULL VARCHAR2(30)
CREDENTIAL_NAME                           NOT NULL VARCHAR2(30)
USERNAME                                  NOT NULL VARCHAR2(64)
DATABASE_ROLE                                      VARCHAR2(7)
WINDOWS_DOMAIN                                     VARCHAR2(30)
COMMENTS                                           VARCHAR2(240)
SQL> desc all_scheduler_credentials;
Name                                      Null?    Type
OWNER                                     NOT NULL VARCHAR2(30)
CREDENTIAL_NAME                           NOT NULL VARCHAR2(30)
USERNAME                                  NOT NULL VARCHAR2(64)
DATABASE_ROLE                                      VARCHAR2(7)
WINDOWS_DOMAIN                                     VARCHAR2(30)
COMMENTS                                           VARCHAR2(240)
SQL> desc user_scheduler_credentials;
Name                                      Null?    Type
CREDENTIAL_NAME                           NOT NULL VARCHAR2(30)
USERNAME                                  NOT NULL VARCHAR2(64)
DATABASE_ROLE                                      VARCHAR2(7)
WINDOWS_DOMAIN                                     VARCHAR2(30)
COMMENTS                                           VARCHAR2(240)
SQL>

Similar Messages

  • Download Advance Chapter: Oracle Database 10g Linux Administration

    A new "betabook" chapter of Wim Coekaerts' and Ed Whalen's "Oracle Database 10g Linux Administration" -- this one focusing on installation -- is available for download from OTN. Plus, you can discuss your thoughts and with the authors themselves. Check it out!
    http://otn.oracle.com/books/betabooks/index.html

    Please don't cross post on many forums,
    check where can i download a vmware image of redhat and oracle preinstalled?

  • Can't Delete Oracle Database Job

    i created an oracle database job and some of them is only a sample test job. i need to delete them but the delete option is not enabled. it looks like all the other oracle database job that i created can't be deleted. please advise thanks.

    it does not have. i guess a dependencies should not cause the problem because other jobs that does have dependencies can be deleted. it is only the oracle database job that can't be deleted. thanks.

  • Which user is running the oracle database software?

    Hello,
    Is there any command to know which is the UNIX user who is running the oracle database software on the platform.
    A quick help will be highly appreciated.
    Thanks.

    Appreciate your help.
    This file does not exist on our UNIX env.
    Is'nt there any command for the same?
    Regards.

  • Junior oracle database jobs

    please who can assist me on how i can get a junior oracle database job.
    i am an oracle certified professional 9i.

    Hi,
    <br>If I believe you in your other post jobs, you have one year of experience, but one year does not make you a junior dba... despite of your OCP</br>
    <br>I advise you to search on link which give robert in the post above.</br>
    <br>Nicolas.</br>

  • How To Pass Oracle Procedure Value using Tidal Oracle Database Job Definition to Tidal Variable

    how do i pass the parameter value from an oracle database tidal job to a tidal variable? for example i have this oracle db job that is defined to execute an oracle database procedure and i need to pass the parameter value to the tidal variable.
    SQL tab:
    begin
      procedure_get_user_info(<OracleUserVariable.1>);
    end;
    thanks,
    warren

    tesmcmd is a binary that sits in your TIDAL master installation bin directory. It takes options, one of which is varset which let's you set variable values.
    So you can run a system level script ( a unix example is given below) which can set values for group variables.
    Looking at your example you need to find a way to define OracleUserVariable.1
    Where does the value for this variable come from?
    Sample variable set script:
    GROUP_FILE_VAR=`echo $2 | sed -e 's/\.xml\.pgp/\.xml/'`
    tesmcmd varset -i $1 -n GROUP_FILE_XML -v $GROUP_FILE_VAR
    XSD_FILE_VAR=`echo $2 | sed -e 's/\.xml\.pgp/\.xsd/'`
    tesmcmd varset -i $1 -n GROUP_FILE_XSD -v $XSD_FILE_VAR
    And we call the job using
    setvar.sh <JobID..p> <Group.REQUEST_FILE>
    which are overrides from a file event.

  • Can HFM & FDQM  run on Oracle Database 10.2.0.2 based on a 64bit server?

    To enhance performances of HFM and FDQM, my customer would like to upgrade the Oracle DB server (10.2.0.2) that runs on Windows Server 2003, from 32Bit to 64Bit, that supports larger number of connections.
    The HFM and FDQM are installed on Windows Server 2003 32Bit and will not move to the new 64Bit server so only the Oracle DB will be installed on the new 64Bit server.
    Is it possible? Is there any document that explain it?
    Thank you,
    Yoram.

    Hi,
    I am facing another related problem. I have installed HFM 9.3.1.1 along with Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 in Windows server 2003 SP2. When I try to create udl by choosing Oracle Provider for OLE DB, the test connection succeed. but giving unknown error at the time of Application server configuration indicating to apply working udl file.
    When I check the HFM installation guide, it tells to download and install the 'Oracle Provider for OLE DB' file from Oracle.com (as per page 21 of the installation doc).But the problem is that the 'Oracle Provider for OLE DB' file is not available for the aforesaid Oracle 10g version.
    Can anybody guide me in the aforesaid problem? Please sent the link from where I can get the file for installation purposes.
    Your help would be of great help.
    Thanks & Regards...

  • [HELP] how to run 2 oracle database on 1 PC linux red hat 9

    Dear Guru,
    I want to run OEMREP database and Test database on the same PC redhat 9.
    I always get error when startup database when starting up the second database.
    It seem it can work with 2 datbase on the same time.
    How I can do it?
    Thanks
    ER

    If you have already created the second database. Then you can be able to start it. You should be able to run many databases on your Redhat 9 box.
    Set the ORACLE_SID for each database you want to start.
    To start db1
    From command prompt
    $ export ORACLE_SID=db1
    $sqlplus /nolog
    SQL>connect /as sysdba
    SQL>startup
    To start db2
    From command prompt
    $ export ORACLE_SID=db2
    $sqlplus /nolog
    SQL>connect /as sysdba
    SQL>startup
    If they are in different oracle home. First set the ORACLE_HOME before each
    e.g
    $export ORACLE_HOME=/u01/app/oracle/ora10g
    or
    $export ORACLE_HOME=/u01/app/oracle/product/em_1

  • Oracle db JOBS concurrency

    Dumb questions on oracle database jobs scheduling:
    Assume we are scheduling database jobs with all default values( except what to run,when to run)
    job_queue_processes=1000
    1) If a job is scheduled to run every 5 minutes. Currently if the job is taking 2 minutes to run based on data, now later after few months
    if the job takes 7 minutes to run. Will there be duplicate jobs running at any given time ?
    2) Can the same job be running more than once at the same instance ?
    Thanks

    If you are using DBMS_JOB then, assuming that what you mean when you say that the job is scheduled to run every 5 minutes is that you specified an INTERVAL of sysdate + interval '5' minute when you created the job, that interval is evaluated to determine the next runtime only after the current run completes. If the job actually runs for 2 minutes, that would mean that the job actually runs every 7 minutes not every 5 minutes. If the job then starts taking 7 minutes, the job will actually run every 12 minutes.
    Justin

  • Regarding Generate New Database Job

    Dear All,
    I have a query regarding Generate New Database job while extracting Local DB to developers.
    I got a request from multiple developers to extract Local DB for them. Do I have to run the Generate Database Job multiple times or is it enought if I run it once and then continue with DB extract Job for all the users?
    Please help me out on this query?
    Regards,
    Abi

    Hi,
    As per oracle documentation -> http://docs.oracle.com/cd/B31104_02/books/RRAdm/RRAdmRM_RemoteConcpts12.html
    "The Generate New Database component creates the local database template for a given database schema version. The component reads the database schema definition from the Siebel repository, then creates Siebel tables and indexes in a database template file stored on the Siebel Remote server in the dbtempl subdirectory."
    Basically after any changes in schema you should run "Generate New Database" job again. That was the reason why I mentioned about generating it again.
    GL

  • Hyperion Oracle database migration

    Hi,
    We have Hyperion 11.1.2.0 running on Oracle database 11.1. We want to upgrade the oracle database from 11.1 to 11.2. Is that possible and will there be an impact on Hyperion that is running fine now?
    Regards,
    Ragav.

    John,
    Thanks for your response. The document does not talk about migrating the data from the old DB to the new DB server.
    1. Should the data be migrated for all schemas to the new DB server before the re configuration?
    2. From the doc - If you updated the datasource configuration for any deployed Web applications, rerun EPM System Configurator and select the Deploy to Application Server task for every Web Application with updated database connection properties. Alternatively, you can manually update the datasource configuration using WebLogic Administration Console.
    So once the Configure Database is done, the applications should be deployed to the Application server using "Deploy to Application Task". Is that right?
    Regards,
    Ragav.

  • Oracle Database Vault Import Case

    Dear All,
    i am maulana from jakarta, i wanna consult you about issue that i faced
    i saw this forum while i wanted to find solution database vault oracle from googling.
    up to now i haven't yet get solution of the problem. my problem is: I cann't import file backup (data pump) from a machine Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production without Oracle Database Vault setting TO another machine running same Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production with setting Oracle Database Vault options
    here the import command script:
    impdp telkomsigma1/******** DUMPFILE="TOADADI.DMP" LOGFILE="impdp_TestAdi.log" DIRECTORY=djpbn SCHEMAS='ADI' REMAP_SCHEMA=ADI:WIDODO REMAP_TABLESPACE=USERS:MPN_DJPBN_OLAP CONTENT=ALL TABLE_EXISTS_ACTION=REPLACE STATUS=5
    the error show:
    Master table "TELKOMSIGMA1"."SYS_IMPORT_SCHEMA_02" successfully loaded/unloaded
    Starting "TELKOMSIGMA1"."SYS_IMPORT_SCHEMA_02": telkomsigma1/******** DUMPFILE=TOADADI.DMP LOGFILE=impdp_TestAdi.log DIRECTORY=djpbn SCHEMAS=ADI REMAP_SCHEMA=ADI:WIDODO REMAP_TABLESPACE=USERS:MPN_DJPBN_OLAP CONTENT=ALL TABLE_EXISTS_ACTION=REPLACE STATUS=5
    Processing object type SCHEMA_EXPORT/USER
    ORA-39083: Object type USER failed to create with error:
    ORA-31625: Schema SYSTEM is needed to import this object, but is unaccessible
    ORA-01031: insufficient privileges
    Failing sql is:
    CREATE USER "WIDODO" IDENTIFIED BY VALUES 'S:A208D9D93D37DDF58B6FF00D76878F1FFB74999B96DC0490CF727ECE48A0;4E2E085B3F498EC4' DEFAULT TABLESPACE "MPN_DJPBN_OLAP" TEMPORARY TABLESPACE "TEMP"
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    ORA-39083: Object type SYSTEM_GRANT failed to create with error:
    ORA-31625: Schema SYSTEM is needed to import this object, but is unaccessible
    ORA-01031: insufficient privileges
    I've tried to follow instruction from oracle Oracle® Database Vault Administrator's Guide
    1. http://docs.oracle.com/cd/E11882_01/server.112/e23090/dba.htm#CHDDECIH ,
    2. http://docs.oracle.com/cd/E11882_01/server.112/e23090/cfrealms.htm#CHDFBGJB
    but it didn't work
    Any one can help me.. give suggestion??
    Thanks before.
    Regards,
    Maulana

    After going through your post what i found is you need to import the dump file using the system user. The user you are using has not got the permission that are required. So if you want to try you can import your dump using system user.
    please test it on some test server before doing it actually.

  • Oracle Database Express Edition 2 Day Plus Java Developer Guide??

    I posted in the JDeveloper forum, as well as sending email via your feedback link found on the tutorial but I am a little disappointed by this:
    The Oracle® Database Express Edition 2 Day Plus Java Developer Guide has some errors in it.
    in Windows, I simply chose, start
    -> programs -> Oracle Database Express Edition -> Go To Database Home Page -> click documentation from the link -> and run the Oracle® Database Express Edition 2 Day Plus Java Developer Guide tutorial.
    the problem is there are mistake(s) in the tutorial, for example: section 4-19 is this:
    "The complete code for the method should now be as follows:
    public boolean authenticateUser(String userid, String password,
    HttpSession session) throws SQLException { "
    it needs to be this:
    public boolean authenticateUser(String jdbcURL, String userid, String password,
    HttpSession session) throws SQLException {
    Also:
    there is no mention that :
    the port and SID must also be passed in the
    ds.setURL(jdbcUrl) found in the authenticateUser() method, or an exception is thrown. This differs from value of the jdbcUrl string found in the getDBConnection() , which makes it hard to figure out
    The tutorial is great even if it doesn't work out of the box, but I am disappointed that errata or completed code for this project is not available, especially when you explicitely point to it via the steps mentioned above.
    Thanks,
    Patrick

    The tutorial seems to be using the old JDeveloper 10.1.2.
    If you are aiming to learn JDeveloper then just use the tutorials linked from the JDeveloper home page.
    http://www.oracle.com/technology/obe/obe1013jdev/index.htm

  • Can't access Home Page - Oracle Database 10g Express Edition...

    Hi,
    I have been running the Oracle Database 10g Express Edition on my Windows XP machine for years from this location:
    C:\Applications\OracleDatabaseExpress\app\oracle\product\10.2.0\server\Database_homepage.url
    In Properties of the Database_homepage.url file, the URL is:
    http://127.0.0.1:8080/apex
    However, when I double-click on the Database_homepage.url file, I get the message "The Page cannot be displayed" in IE. I do run the "net start OracleXETNSListener" utility first.
    I only ran it last week. After that, I did run a couple of virus checks that deleted a couple of trojan viruses.
    What could have gone wrong suddenly? Any help would be greatly appreciated. Thanks a lot!
    Edited by: markk2 on Mar 1, 2011 9:18 PM

    Hi Mark;
    Nice to hear issue solved ;) Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Oracle Database in fibre mode

    Hi everybody,
    Recently i was going through one document where the Cons and prons of Running Oracle Database Server(10g) in Microsoft Windows Operating Systems was being Discussed.
    There i came across of Running the oracle Database in Fibre Mode which as it states: Employs Oracle Scheduled Fibres instead of O/S Scheduled threads...
    Can anybody share some more light on running the DB in Fibre Mode...
    What is this Fibre Mode actually....
    Any help Appreciated...
    Thanks & Regards,
    Prosenjit Mukherjee

    The pros and cons can be found at a far more easily visible level than getting into fibres versus threads.
    1. Put antivirus software on the Windows server and performance will become glacial
    2. In testing in my lab, without antivirus software, Oracle Enterprise Linux gives superior performance too all versions of Windows except 2008 Server.

Maybe you are looking for

  • How to change background color in html iView

    Hi everyone, Is there a way to change the background color of a HTML iView automatically (without using the html editor) ? Actually the background is white, and I would like it to be blue (or better : in the same color of the theme's background). And

  • Can edit some photos in Photoshop, but not all

    Hi, I recently had to archive and install for a system problem. When I tried to edit photos from iPhoto in Photoshop (which always worked before), I had problems, so I reinstalled Photoshop (actually twice). Now most of my photos will open in photosh

  • How do i convert a plain number into hh:mm:ss

    Below is a part of my spreadsheet i am setting up for travelling. The driving time number is derived from a "IF" calculation that divides the "Distance" by a number depending upon the selection in the "Road" column (Data validation list) The calculat

  • Document Attachement to PO

    Whenever  a PO output gets triggered the document attachement in the PO also should go along the PO to the vendor. Is this function possible with the standard SAP settings

  • Web link from SWF

    Hi I am trying to create a small animation half the size of a banner and add it to a webpage, at the end of the animation I want a button to link and open a website. I have done the animation and at the end i have added some text and turned into a bu