Oracle 11g Planner get_file - shows

Hi all

I am runnign a job and out go to a file. By default when you use external (EXECUTABLE) jobs, the file goes to $ORACLE_HOME/Planner/log.

It all works very well.

Where I have a problem, it's when I try to read the contents of the file (DBMS_SCHEDULER. GET_FILE). When I read it out of my procedure, I get the following:

==================================================================================

Open the file

¿¿¿¿¿¿¿¿¿¿¿¿¿¿

¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿

¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿=¿¿¿¿¿¿¿¿¿¿¿¿¿¿

And here's the actual content of the file when I open it the OS.

Cat /u01/app/oracle/product/11.2.0/dbhome_1/scheduler/log/job_30762_2218_stdout

{'results': [{"DB_VERSION": "11.2.0.2.0", "UPTIME": "0 days 15 hours 22 mins 19 dry", "SGA_MAX": "388 M", "STARTUP_TIME": "January 30, 2014 09:21:25"}], "time": 0.13770198822021484}

All the world has already had this problem?

Thanks in advance for any help.


Jan s.

Hi all

Enough Odly, when I used when I used standard UTL_FILE, it works as it should.

/ * Character ¿¿¿Werid

DBMS_LOB.CREATETEMPORARY (l_clob, TRUE, DBMS_LOB.session);

() DBMS_SCHEDULER.get_file

SOURCE_FILE-online l_external_log_id | ' _stdout',

credential_name-online "ORACLECREDENTIALS."

file_contents-online l_clob,

source_host-online 'localhost');

Dbms_output.put_line ('open the file');

-DBMS_OUTPUT.put_line ('stdout:');

Dbms_output.put_line (l_clob);

*/

l_file: = utl_file.fopen ('SCHEDULER_EXT_FILES', l_external_log_id |) (' _stdout ',' R', 32767);

-initialize the empty clob

DBMS_LOB.CREATETEMPORARY (l_clob, TRUE, DBMS_LOB.session);

loop

Start

UTL_FILE.get_line (l_file, l_buffer);

DBMS_LOB. Append (l_clob, l_buffer);

exception

When no_data_found then

"exit";

end;

end loop;

DBMS_LOB.freeTemporary (l_clob);

-close the file

UTL_FILE.fclose (l_file);

Thanks

Jan s.

Tags: Database

Similar Questions

  • How to get more information about the users in oracle 11g

    Hi all

    I need to know more information on users in oracle 11g.

    1. how to check when user times last connection to the database.
    2. If the user account is blocking why it is blocked? If it is locked trying Loing with wrong password how to check how many times he tried with wrong password... and other reasons also
    3 reaction strives to select user expire date is to show the value empty... we can check expire date by querys or we need to check the profile?
    4. how to check while he was reset his password, the last time.

    Please correct me if am wrong. Thank you

    Concerning

    1. how to check when user times last connection to the database.

    AUDIT

    2. If the user account is blocking why it is blocked? If it is locked trying Loing with wrong password how to check how many times he tried with wrong password... and other reasons also

    Check the profile of this user and attr.

    3 reaction strives to select user expire date is to show the value empty... we can check expire date by querys or we need to check the profile?

    SQL> select EXPIRY_DATE from dba_users ;
    
    EXPIRY_DA
    ---------
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    24-SEP-11
    23-MAY-13
    24-SEP-11
    24-SEP-11
    24-SEP-11
    

    check
    EXPIRY_DATE in dba_users is null

    4. how to check while he was reset his password, the last time.

    SELECT SYS PTIME. THE USER$;

  • a search tool similar to google search suggestions for forms of oracle 11g

    Nice day
    I was wondering if there is a tool/plugin that would be something like google for a field search suggestions show on oracle 11g. He looking for a column in the database. The thing is, I have a column where new fields should be added each year, where they do not exist. It's a little complicated and tedious to search if the field exists manually, a tool that would give suggestions when writing a keyword would be really useful.
    If this is not possible, I would really appreciate all the advice I could get on how to make it easier for the user to look for already existing data
    Thank you

    Published by: 974565 on January 21, 2013 01:21

    Unfortunately, I can't tell much more about this bean that I pulled out a long time ago, and my memory is not as good as it was ;-)
    I don't even know if this bean is able to insert a word just typed by the user...

    But, as all the material on the site of Java Bean is free, you are also free to find a Java developer who could improve the existing code.

    François

  • "Is it possible to oracle 11g DB without journal Archive OEL 5 of the backup mode.

    Hai everybody,

    I am new to oracle, I want to take the online backup without log mode Archive is possible? due to the database to archive performance is little low, that if our database is in no fashion show archive log cannot be greater? Oracle 11g provides another way to perform a backup online without log mode archive?

    concerning
    George
    At the time of database archiving is it take system resources?
    you mean if db is in archive mode the db works the same like noarchive mode
    

    How long to read the documentation on the archivelog/noarchivelog mode?

    How long you have used to get the answer here?

    worth it?

    Please check this:
    http://docs.Oracle.com/CD/B28359_01/server.111/b28310/archredo002.htm
    If you get any related question tell us and we try to solve, otherwise close this thread by marking as replied.

  • Migrating oracle 9i to oracle 11g but now dblink is no work

    First of all, sorry for my English.
    Achieved an export from the old to the new db_links and now do not work.

    Oracle 9i - work

    13:52:45 card > @banco
    Mostra user, instance, e start time host - pressure enter para continue
    E the USER 'SYSTEM '.

    INSTANCE_NAME HOST_NAME STATUS STARTUP_TIME
    ---------------- ---------------------------------------------------------------- ------------ --------------
    atlas1 card OPEN 01/23/12 17:53

    Decorrido: 00:00:00.03

    BANNER
    ----------------------------------------------------------------------------------------------------
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE Production 9.2.0.8.0
    AMT for Linux: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production

    Decorrido: 00:00:00.03
    13:52:46 card >

    13:52:59 card > @dblink
    Informed o valor para db_link: scapr

    OWNER, DB_LINK CREATED USERNAME HOST
    -------------------- ------------------------------ -------------------- ------------------------------ --------------
    SCAPROD.PANVEL.COM.BR PUBLIC LINK SCA 17/11/11 14:35

    Decorrido: 00:00:00.03
    13:53:03 card > desc dual@scaprod
    Nome
    -------------------------------------------------------------------------------------------------------------------------
    MODEL

    13:53:07 card > desc [email protected]
    Nome
    -------------------------------------------------------------------------------------------------------------------------
    MODEL

    13:53:16 card >

    13:53:16 card > show the global setting

    VALUE OF TYPE NAME
    ------------------------------------ ----------- -------------
    global_context_pool_size string
    global_names boolean FALSE
    13:53:40 card >



    Oracle 11g - does not, a little work with the full name of the db_link:

    13:53:57 nouveaute11 > @banco
    Mostra user, instance, e start time host - pressure enter para continue
    E the USER 'SYSTEM '.

    INSTANCE_NAME HOST_NAME STATUS STARTUP_TIME
    ---------------- ---------------------------------------------------------------- ------------ -----
    aquarius card OPEN 01/26/12-13:42

    Decorrido: 00:00:00.01

    BANNER
    ----------------------------------------------------------------------------------------------------
    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for Linux: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production

    Decorrido: 00:00:00.04
    13:53:58 nouveaute11 >

    13:54:12 nouveaute11 > @dblink
    Informed o valor para db_link: scapr

    OWNER, DB_LINK CREATED USERNAME HOST
    -------------------- ------------------------------ -------------------- ---------------------------
    SCAPROD.PANVEL.COM.BR PUBLIC LINK SCA 26/01/12 13:02

    Decorrido: 00:00:00.03
    13:54:16 nouveaute11 > desc [email protected]
    Nome
    ---------------------------------------------------------------------------------------------------
    MODEL

    13:54:23 nouveaute11 > desc dual@scaprod
    ERROR:
    ORA-02019: description of conexao para o banco dados não localizada remote


    13:54:26 nouveaute11 >

    13:54:41 nouveaute11 > display the global setting

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------
    global_context_pool_size string
    global_names boolean FALSE
    global_txn_processes integer 1
    13:54:45 nouveaute11 >


    Any help? :)
    Thank you!

    vitorjr81 wrote:
    As you can see the db_link is functional, but just with the name and surname:

    13:54:16 nouveaute11 > desc [email protected]
    Name MODEL

    13:54:23 nouveaute11 > dual@scaprod desc
    ERROR:
    ORA-02019: description of conexao para o banco dados não localizada remote

    13:54:26 nouveaute11 >

    13:54:41 nouveaute11 > display the global setting

    VALUE OF TYPE NAME
    -chain global_context_pool_size
    global_names boolean FALSE
    global_txn_processes integer 1

    Do as below and post the results here

    SQL> select global_name from global_name;
    
    GLOBAL_NAME
    --------------------------------------------------------------------------------
    V112
    
    SQL> 
    
  • Oracle 11g remote connection problem

    When I try to connect to the Oracle database using SQLPlus or SQLDeveloper remotely I get the following error.

    ORA-01017: INVALID USERNAME/PASSWORD; logon denied.

    Server details:
    Oracle 11g on Linux Enterprise 4
    I can connect to the server using SQLPlus.
    SQLCASE SHOW is MIXED

    Customer details:
    Windows Server 2003 enterprise Edition
    Oracle 11g Client.
    Remote computer my TNSPING to this server works perfectly.

    For the same connection string, I can't connect to the client. I don't know that I type wrong password.

    Any thoughts on this will be helpful.

    Thank you
    Smith

    If it's a sys user you will need to set the password file to connect to the database as sysdba user remotely. and we do not need to check if the privilege to connect is given to the sys user or not. adding to this remote_login_password check = EXCLUSIVE lock

    Published by: sshafiulla on February 16, 2010 23:17

  • Developer of form for oracle 11g (win)

    Hi all, I have worked on oracle 9i and used with the developer 6i. now, I am more civilized :) to oracle 11g (win32_11gR1_database_1013). It is installed properly. now, I need to do some development projects, as I did before. Please guide me what development tool will be ideal for this version of oracle installed and where to can download it. Thanks in advance.

    kashif_ashfaq wrote:
    This link does not work. There is change in the appearance of the oracle site. Please advise according to the new interface.

    Yes, it's a very confusing page. Here is the translation of this page:

    (1) If you want the version 10 gr 2 Developer of forms, find the line that reads "Oracle Developer Suite 10 g (10.1.2.0.2) (including forms and Designer)" and then click on the link "Windows". On the resulting page, accept the agreement and download the two files zip to developers. (I urge you also to read the installation instructions at http://download.oracle.com/docs/cd/B25016_08//doc/dl/core.htm.)

    (2) If you want the latest version, click the link that is provided in red and underlined. Scroll down to the part that shows the forms download and download the 4 discs for WIndows. ALSO, make sure that you have the following installed (most of which you get from the same page)

    * WebLogic Server
    * Deposit creation utility
    * Identity management
    * Wizard for the SSO metadata repository
    * Identity management 10 g 3
    * Oracle database

    (3) you can also get it yourself. Exploration is half the fun in Oracle (and a quite necessary skill). One way possible: follow the bouncing ball

    http://OTN.Oracle.com
    -> Products (main menu on the left): development tools (link)
    -> Traditional tools (Portal Central region): forms (link)
    -> Downloads (extra area on the right side): forms (link)

    When there, read* and follow the instructions carefully.

    In addition, you can other research tools. JDeveloper/ADF and Application Express come to mind.

  • Oracle 11g 11.2.0.1 connect to Forms 6i [32 bit] Version 6.0.8.11.3 (Production)

    Hello

    I set up a new server with Windows 8r2. Install Oracle 11 g 64 bit.

    Mounted 10 32-bit Desktop windows forms [32-bit] Version 6.0.8.11.3 (Production).

    I am able to connect to Oracle 9i. but I want to connect to Oracle 11g

    Are there measures where I can solve my problem.

    already had made the following changes to the server

    C:\ > sqlplus/nolog

    SQL > connect / as sysdba

    Conectado.

    SQL > shutdown immediate

    SQL > startup restrict

    SQL > alter database character set internal_use UTF8;

    SQL > shutdown immediate

    SQL > startup

    Under sqlnet.ora I changed

    NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

    SQLNET. ALLOWED_LOGON_VERSION_SERVER = 8

    SQLNET. ALLOWED_LOGON_VERSION_SERVER = 8

    SQLNET. ALLOWED_LOGON_VERSION_CLIENT = 8

    I'm still not able to connect.

    Sandy

    1. what error message do you receive forms 6i when you can not connect

    2. what level of Forms 6i patch do you have?  A more recent patch level may be required.

    Tony

  • That means 1z0-117 oracle 11g sql tuning now say it includes v12 addition v11

    Hello

    I did the 1z0-117 sql tuning review once.

    Not too far away.

    I studied under and turned off for a while.

    I anticipate taking in 1 month.

    However, I just noticed that the oracle site says 1z0-117 also said that v12 is also included for consideration:

    Oracle 11g sql tuning.

    It makes no sense at all.

    Roger

    However, I just noticed that the oracle site says 1z0-117 also said that v12 is also included for consideration:

    Oracle 11g sql tuning.

    Unless you are looking for something I'm not, what actually is the 1Z0-117 page says: "validated against: review has been validated against Oracle Database 11g Release 2 version 11.2.0.1.0 and database Oracle 12 c 12.1.0.1.0"

    What they actually mean by it is that someone went through all the issues and and asked the question "is still a relevant issue for the release of 12 c to Oracle?'." "  If they find issues that are not valid because of an update/change, then the question will be removed from review (or changed) so that someone who has used 12 c but not 11 g will not at a disadvantage.

    This is * No * means that Oracle has added questions to the review of the capabilities that were introduced in version 12 c.

  • Oracle 11g r1 license work for oracle 11g r2?

    Hello

    We have license of oracle 11g r1 then do we need to purchase a separate license to upgrade to 11g r2?

    Hello

    No, no need to buy a separate license to upgrade to 11g r2 just improved it.

    Amatu Allah.

  • How can I create a list of choices for the search bit in Oracle 11g ADF fields?

    Hi Experts,

    Please inform how to add some selection list or drop downs on the pane search Oracle 11g ADF.

    I have a requirement to create a list of choices for the search store field. # Please notify.

    SS_SearchCriteriaPage1.png

    Thank you

    David Selvaraj

    You can create a view based on a static list object and attach it to your attribute as lov-driven model.

    Dario

  • Shape how Hide bar by default in oracle 11g

    Hi people of genius.

    I want to just hide the bar window by default in forms of oracle 11g. Please advise me how to hide who I had him marked in red below.

    Thank you

    This thread appears to be a bit confusing.  You try to delete the entry 'Window' menu or the bar together, which includes the Oracle logo?  If you try to remove the whole bar AND that you use the latest version of forms (11.1.2.2), you can use the new applet parameter guiMode.  This new feature of 11 GR 2 allows to hide the various window dressings.  See the Deployment Guide forms 11.1.2 for more details on how to use this new feature:

    http://docs.Oracle.com/CD/E48391_01/doc.11120/e24477/basics.htm#FSDEP759

  • use of temporary space in oracle 11g rac

    Hello

    Oracle version: oracle 11g r2

    OS: linux

    storage: asm on exadata

    Please help us understand the use of the temp

    {code}

    SQL > set linesize 1000
    SQL > set pagesize 1000
    SQL > col USERNAME format a20
    SQL > col SPID format a10
    SQL > col MODULE format a30
    SQL > col PROGRAM format a30
    SQL > SELECT s.sid, s.serial #, s.username
    2, p.spid, s.module, p.program
    3, SUM (su.blocks) * tbsp.block_size/1024/1024 mb_used
    4, su.tablespace
    5. FROM v$ sort_usage su
    6, v$ session s
    dba_tablespaces tbsp
    7, $v 8 p process
    9 WHERE su.session_addr = s.saddr
    10 AND su.tablespace = tbsp.tablespace_name
    11 AND s.paddr = p.addr
    GROUP 12 OF
    13 s.sid, s.serial #, s.username, s.osuser, p.spid, s.module,.
    14 p.program, tbsp.block_size, su.tablespace
    15 ORDER BY s.sid;

    USERNAME SID SERIAL # SPID MODULE PROGRAM MB_USED TABLESPACE
    ---------- ---------- -------------------- ---------- ------------------------------ ------------------------------ ---------- -------------------------------
    11 2092 DBSNMP 2861 emagent_SQL_oracle_database Oracle @ [email protected] 8 TMP4

    SQL > select * from v$ temp_space_header;

    FILE_ID BYTES_USED, BYTES_FREE BLOCKS_FREE RELATIVE_FNO BLOCKS_USED NOM_TABLESPACE
    ------------------------------ ---------- ---------- ----------- ---------- ----------- ------------
    TMP1 2 + 12 222274816 33554432 2048 1024 3.6418E
    TMP3 4 + 11 19283968 75497472 4608 1024 3.1595E
    TMP4 5 + 11 19687936 0 0 1024 3.2257E
    TMP5 6 + 13 688638464 0 0 1024 1.1283E

    {code}

    Why isn't bytes_used reclaim as only 8 MB is currently using

    Thank you

    PMP

    I wanted to tell temp is never off allocated. So, if a 'bad' query explodes temp. the only thing you can do is to create a new and drop the old one.

    11 GB temp is clearly ridiculous. Usually, this is caused by the merge join Cartesian paths in your instructions.

    -----------

    Sybrand Bakker

    Senior Oracle DBA

  • How interrogate a user affected temp and tableapce default tablespace in oracle 11g?

    I have this SUNNY user on my DB. Now, I want to know how to query an affected user temp and tableapce default tablespace in oracle 11g?

    I tried Google, but no luck. can anyone help?

    Select the name of user, USER_USERS, temporary_tablespace from dba_users where username = "SUNNY";

    or

    Select the name of user, USER_USERS, temporary_tablespace from user_users where username = "SUNNY";

  • Oracle 11g CMO

    Hi all

    am an Oracle 11 g RAC OCÉ, plan to write oracle 11g CMO, can anyone suggest how to proceed?

    How the review will be... is this objective or another criterion?

    How to buy the right? and how much cost in India?

    anytime I write or Oracle Corp. will decide on the dates etc...?

    Please guide me the details.

    Thank you

    Sam.

    The 11g COM is different from all the other reviews.  This is a 2 day practical laboratory exercise.  You are given to an Oracle server and need to perform different tasks, solve problems, etc.

    The review of the CMO is only given to a relatively small number of times throughout the year.  Strictly speaking, there are a lot of times, but they are spread all over the world, so many times at a location any where near you will be weak - maybe one or two a year.

    In addition to the exam, you must also take two practical courses acceptable to Oracle.  You can find more information, including the price in your area by reading and following the links available at the following ADDRESS:

    https://education.Oracle.com/pls/web_prod-PLQ-dad/db_pages.GetPage?page_id=653&get_params=P_ID:52 #tabs - 3

Maybe you are looking for