UTL_FILE alter system

Hi expert,

I try to use UTL_FILE.

In the first time, I run only these commands:

SQL > CREATE DIRECTORY MIGR'EUROP AS ' / tmp/MIGR'EUROP /';
SQL > GRANT READ, WRITE ON DIRECTORY RAHUL DBA;

but to use utl_file, I am obliged to execute it "alter system set utl_file_dir =...". »

is this true? Can I not put the utl_file_dir to use UTL_FILE?

See you soon,.
Lain

oracle@mauri-laptop:/tmp/MIGR$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Thu Feb 24 16:31:25 2011

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> CREATE DIRECTORY MIGR AS '/tmp/MIGR/'; 
SQL> GRANT READ, WRITE ON DIRECTORY MIGR TO DBA; 
SQL> host cat /tmp/MIGR/Report.txt
 test
SQL> DECLARE 
  V1 VARCHAR2(32767); 
  F1 UTL_FILE.FILE_TYPE; 
BEGIN 
  F1 := UTL_FILE.FOPEN('MIGR','Report.txt','R',256); 
  UTL_FILE.GET_LINE(F1,V1,32767); 
  UTL_FILE.FCLOSE(F1); 
END;
  2    3    4    5    6    7    8    9  
 10  /
DECLARE
*
ERROR at line 1:
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
ORA-06512: at line 5


SQL> select * from all_directory;
select * from all_directory
              *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> select * from all_directories;

OWNER                      DIRECTORY_NAME
------------------------------ ------------------------------
DIRECTORY_PATH
--------------------------------------------------------------------------------
SYS                      MIGR
/tmp/MIGR

SYS                      SUBDIR
/u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/order_entry//2002/Sep

SYS                      SS_OE_XMLDIR
/u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/order_entry/


OWNER                      DIRECTORY_NAME
------------------------------ ------------------------------
DIRECTORY_PATH
--------------------------------------------------------------------------------
SYS                      LOG_FILE_DIR
/u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/log/

SYS                      DATA_FILE_DIR
/u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/sales_history/

SYS                      XMLDIR
/ade/b/2125410156/oracle/rdbms/xml


OWNER                      DIRECTORY_NAME
------------------------------ ------------------------------
DIRECTORY_PATH
--------------------------------------------------------------------------------
SYS                      MEDIA_DIR
/u01/app/oracle/product/11.2.0/dbhome_1/demo/schema/product_media/

SYS                      DATA_PUMP_DIR
/u01/app/oracle/admin/localdb/dpdump/

SYS                      ORACLE_OCM_CONFIG_DIR
/u01/app/oracle/product/11.2.0/dbhome_1/ccr/state


9 rows selected.

SQL> 
SQL> 
SQL> show parameter utl_file;

NAME                         TYPE      VALUE
------------------------------------ ----------- ------------------------------
utl_file_dir                    string      

SQL>
SQL> alter system set utl_file_dir='/tmp/MIGR','/u01/app/oracle/product/11.2.0/dbhome_1/MIGR/' scope=spfile
  2  ;

System altered.

SQL> 
SQL> 
SQL>       
SQL> shutdown

Database closed.
Database dismounted.

ORACLE instance shut down.
SQL> SQL> SQL> 
SQL> 
SQL> 
SQL> 
SQL> startup
ORACLE instance started.

Total System Global Area 3290345472 bytes
Fixed Size              2217832 bytes
Variable Size           1795164312 bytes
Database Buffers      1476395008 bytes
Redo Buffers             16568320 bytes
Database mounted.
Database opened.
SQL> 
SQL> show parameter utl_file

NAME                         TYPE      VALUE
------------------------------------ ----------- ------------------------------
utl_file_dir                    string      /tmp/MIGR, /u01/app/oracle/pro
                               duct/11.2.0/dbhome_1/MIGR/

SQL>
SQL> SET SERVEROUT ON

declare
v_buff VARCHAR2(2000);
fhandle UTL_FILE.FILE_TYPE;
begin
dbms_output.put_line('WRITE');
fhandle:= UTL_FILE.FOPEN('MIGR','Report.txt','W');
UTL_FILE.put_line(fhandle,' Attempt to write');
UTL_FILE.FCLOSE(fhandle);
end;
/SQL> SQL>   2    3    4    5    6    7    8    9   10  
WRITE

PL/SQL procedure successfully completed.

chmod 777/tmp/RAHUL r /.

Published by: sb92075 on February 24, 2011 08:14

Tags: Database

Similar Questions

  • Alter system switch logfile

    Hi all

    9i

    RHEL5

    We make the standby database as our report server. It comes to unload part of the Production workload to improve performance.

    To get the latest data, or before you run reports on the standby server, I'll first > alter system switch logfile;

    So that the backup database will be updated the last transactions to date.

    How often should I run the command? Is this enough to run it only once? or I'll run it n times according to the number of newspapers of recovery?

    Thank you very much.

    JC

    In 9i to run queries on the standby database, you must open the database in read-only mode standby. In this case there is therefore no question of switching logfile or so. Before opening the database in standby mode ReadOnly, you make sure that all the archiving of primary logs are applied to the standby database in managed recovery mode. Once this Eve is open for requests.

    I suggest you read below. It erases the concepts and is specific for 9i

    Log apply Services

    concerning

    Pravin

  • alter system switch logfile crashes

    Hi Experts,

    Please help me determine the above error.

    Recently, I was told to take one of our EBS environment in archivelog mode. While doing this activity, I coped 'ORA-16014.

    The steps that I follow are listed below:

    SQL > alter system set log_archive_dest_1 = ' location = / mnt/DEVarchive/trcdev ' scope = spfile;

    Modified system.

    SQL > alter system set log_archive_format='TRCDEV_%s_%t_%r.arc' scope = spfile;

    Modified system.

    SQL > shutdown immediate;

    The database is closed.

    The database is dismounted.

    ORACLE instance stops.

    SQL > startup mount

    ORACLE instance started.

    Total System Global Area 4275781632 bytes

    Bytes of size 2235208 fixed

    989856952 variable size bytes

    3271557120 of database buffers bytes

    Redo buffers 12132352 bytes

    Mounted database.

    SQL > alter archivelog database;

    Database altered.

    SQL > list of archive logs

    Database log mode Archive Mode

    Active AutoArchive

    Archives/mnt/DEVarchive/trcdev of destination

    More old sequence of journal online 9

    Log sequence archive 11

    Current log sequence 11

    SQL > alter database open;

    Database altered.

    SQL > alter system switch logfile;

    Modified system.

    SQL > /.

    Modified system.

    SQL > /.

    Now, the session hangs then I checked my alert log file and found the details below

    ARCH: Stopped archiving, error occurred. Will continue to retry

    TRCDEV ORACLE instance - error check-in

    ORA-16014: connect 2 sequence # 11 not archived, not available destinations

    ORA-00312: wire 2 1 online journal: ' / mnt/DEVdata/trcdev/redo02a.log'

    ORA-00312: wire 2 1 online journal: ' / mnt/DEVdata/trcdev/redo02b.log'

    After reading the newspaper to alert carefully, it is clear that it is not able to archive the logs and archiving is hung.

    The reason could be my destination Archive got filled, but in my case, my destination archive has a free space of about 24 G.


    Please tell me how to troubleshoot further, a quick response will be highly appreciated.


    -Thank you

    @John

    I checked log_archive_dest_2 and it is set to null. And I think it would be better if I leave it in its default state.

    @Mustafa

    Db_recovery_file_dest is also set to null.

    Further, I disabled the archivelog mode and erase all the settings that I did for archiving logs (parameter as log_archive_dest_1 log_archive_format).

    I have another session close immediately and started the database in editing mode. After that, I activated all the setting again and activated the archivelog mode for my database.

    SQL > alter database open;

    Did bounce my DB once again, and then manually change logfiles 2 - 3 times and BOOM everything seems to work fine now. No more no hung sessions and archives are generated too.

    A big thanks to everyone in this thread.

  • Query on ALTER SYSTEM SET


    Hello

    I was under the impression that

    "PFILE has limitation to change settings for initialization of dynamically. If any initialization parameter must be changed, we can edit the pfile parameter changes take effect with the next restart of the system

    To work around this limitation, Oracle has created the concept of the SPFILE initialization parameter can be changed dynamically using ALTER SYSTEM SET statement. »

    But, today, I started my test using PFILE database and run the following command to change the setting of the memory_target from 300 to 290 M.

    ALTER SYSTEM SET memory_target = 290 M;

    And to my surprise, this statement executed correctly without errors and memory_target parameter has been set to the new value (of course, in memory).

    Isn't it change the init dynamically using PFILE itself?

    Please clarify my doubt and correct my understanding.

    Kind regards

    Bharath

    bharathDBA wrote:

    Hello

    I was under the impression that

    "PFILE has limitation to change settings for initialization of dynamically. If any initialization parameter must be changed, we can edit the pfile parameter changes take effect with the next restart of the system

    To work around this limitation, Oracle has created the concept of the SPFILE initialization parameter can be changed dynamically using ALTER SYSTEM SET statement. »

    But, today, I started my test using PFILE database and run the following command to change the setting of the memory_target from 300 to 290 M.

    ALTER SYSTEM SET memory_target = 290 M;

    And to my surprise, this statement executed correctly without errors and memory_target parameter has been set to the new value (of course, in memory).

    Isn't it change the init dynamically using PFILE itself?

    Please clarify my doubt and correct my understanding.

    Kind regards

    Bharath

    You have a bad mixing on the genesis of the SPFILE. Yes, it is a binary file and all this but remember, isn't the SPFILE which makes a dynamic parameter or a PFILE that makes static, but it is the nature of the setting itself which allows to happen. Yes, the difference in the PFILE and SPFILE parameter would be obvious when you change a dynamic parameter, and would give a rebound to the db. Since the PFILE file has not been updated (it's a text file must be updated manually), with the next restart, the setting would take the same value as it has in the PFILE file. But with the SPFILE, depending on what you have set in SCOPE, the parameter should behave accordingly.

    HTH

    Aman...

  • When ALTER SYSTEM ARCHIVE LOG happens implicitly...

    Hello

    When you scan the v$ archived_log SIDE primary SCHOOL, I saw below output

    NAME OF CREATOR REGISTR SEQUENCE # FAL
    -------------------------- ------- ------------ ----------------- ---
    /U05/prod/archivelogs/ARC_816992406_1_22885.dbf ARCH ARCH 22885 No.
    /U05/prod/archivelogs/ARC_816992406_1_22886.dbf FGRD FGRD 22886 No.


    Then I went to the alert log file and search for the sequence #, I found that

    When the newspaper switch happens through * ALTER SYSTEM ARCHIVE LOG *, then this sequence archive log CREATOR and REGISTRAR will be FGRD.
    What command of newspaper happens automatically (90% complete log file), then this sequence archive log CREATOR and REGISTRAR will be ARCH.


    If * ALTER SYSTEM ARCHIVE LOG * happens synchronously means control will not return to the process unless and until the underlying log file has been
    archived completely, so the CREATOR and the REGISTRAR is FGRD.

    My question is, under what circumstances * ALTER SYSTEM ARCHIVE LOG * happen implicitly.


    Thank you

    Hello

    user9085814 wrote:
    Thanks for the reply...

    I agree with you.

    The environment that I take abt is DATAGUARD Enviornment.

    I have not published ALTER SYSTEM ARCHIVE LOG CURRENT of any session (foreground process) of the primary DB.
    But I can still see ALTER SYSTEM ARCHIVE LOG in the log to alter.

    When you call the command ALTER SYSTEM ARCHIVE LOG CURRENT , then oracle write in the journal of the alerts as:

    On primary

    
     Wed May 15 09:16:56 2013
     Archived Log entry 789 added for thread 1 sequence 396 ID 0xf23a6e3f dest 1:
     *ALTER SYSTEM ARCHIVE LOG*
     Thread 1 cannot allocate new log, sequence 398
    

    >

    So my question on what scenario ALTER SYSTEM ARCHIVE LOG will be captured in the log of alerts.
    because it's a mistake to run foreground process ALTER SYSTEM ARCHIVE LOG .

    Have you had a logs archived backup RMAN script which is called ALTER SYSTEM ARCHIVE LOG CURRENT

     RMAN> run
               {
                  sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
                  backup  archivelog all delete all input;
               }
    

    If you try the command ALTER SYSTEM ARCHIVE LOG CURRENT on stanby, you get error ORA-01109: database is not open. This means database is not open READ/WRITE mode.
    Then we can use ALTER SYSTEM ARCHIVE LOG CURRENT on the standby database.

    Thanks for the interesting thread
    Mr. Mahir Quluzade
    http://www.Mahir-quluzade.com

  • Do we need apostrophes when you set values with ALTER SYSTEM?

    DB version: 11.2, 10.2
    Version: AIX

    What logs the values of character with ALTER SYSTEM, do I have to enclose the value within single quotes.


    Both the below worked. So I'm a bit confused.
    SQL> ALTER system set audit_trail=NONE scope=spfile;
    
    System altered.
    
    -- Tested with single quotes on another DB
    SQL> ALTER system set audit_trail='NONE' scope=spfile;
    
    System altered.

    What logs the values of character with ALTER SYSTEM, do I have to enclose the value within single quotes.

    When you pass several parameters, you can use single quotes, in other cases sound option.

    If you have multiple databases on hold, you must configure by separating with single quotes.
    For example,.
    (1) fal_client = "STBY1", "STBY2", "STBY3" and so on.
    (2) log_archive_dest_2 = "service = stby lgwr async... '

    If you see under SPFILE settings, here, some are mentioned with single quotes & SEC_CASE_SESITIVE_LOGIN is not in quotes. But the value is always the same.

    From SPFILE;

    *.remote_login_passwordfile='EXCLUSIVE'
    *.sec_case_sensitive_logon=FALSE                                       "used NO QUOTES"
    *.sga_max_size=16106127360
    *.star_transformation_enabled='TRUE'                                        "QUOTES"
    
    SQL> show parameter remote_login
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    remote_login_passwordfile            string      EXCLUSIVE
    SQL> show parameter sec_case
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    sec_case_sensitive_logon             boolean     FALSE                                     "used NO QUOTES"
    SQL> show parameter sga_max_
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    sga_max_size                         big integer 15G
    SQL> show parameter star_tran
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    star_transformation_enabled          string      TRUE                                         "QUOTES"
    SQL>
    
  • alter system kill session

    Hello

    While killing a session, I get a message like

    QL > alter system kill session '802,30515' immediate;
    alter system kill session '802,30515' immediate
    *
    ERROR on line 1:
    ORA-00031: session marked for kill

    I checked after a few hours again, I get the sid and the n serial form v$ session


    but the status of the user of the user is as 'dead '.

    SQL > select user name, session status $ v where sid = 802;

    STATUS OF USER NAME
    ------------------------------ --------
    APPS KILLED


    If the session was killed or not?

    Thank you
    Vijay

    887400 wrote:
    Its Linux X 86 64-bit

    But for some sessions, they will be killed immediately after alter system kill session command.,.

    but in this case it is not end immediately?

    What could be the cause?

    Internal Oracle session remains as long as the remains of operating system processes.

    Kill - 9

    Since you have already issued ALTER SYSTEM KILL SESSION
    You can't get the process ID of the Oracle's OS.

    You can associate up to the session Oracle with OS time as evidenced by time of CONNECTION
    ps - ef | LOCAL grep

  • ALTER system set events

    Hi all

    I use a 10.2.0.4 Oracle version.

    My colleague trace active generation using: alter system set events 942 trace name errorstack level 3';

    How will I know if it is active now? And how can I turn it off?

    Kind regards
    dbajug

    How will I know if it is active now?

    For all the events that are defined at the system level, try and check the trace file created in USER_DUMP_DEST directory:

    alter system set events 'immediate trace name events level 4';
    

    And how can I turn it off?

    Try:

    alter system set events '942 trace name errorstack off';
    
  • Method to identify the user isuing ALTER SYSTEM

    Hi all
    We have a database of test in which APPS (a power user) access is given to all developers. We had kept TIMED_STATISTIC to false in this case, so that the load is reduced to the minimum. From these last days, we change this value at the level of the system, and we are unable to identify the person.

    Is there a way I can write a database trigger to capture this specific ALTER SYSTEM event? Any help in this regard is highly appreciated.

    Kind regards
    Lucette

    Lucette wrote:
    Hi Keita,
    My mistake, I do not pay attention on behalf of the author. Forgive me for my doubts; they may be stupid - I'm not a DBA, but I'm a preparer SQL.

    If I use audit_sys_operations - he will capture all ALTER SYSTEM orders by any user. Then narrow it down us to the test user by issuing ALTER AUDIT test SYSTEM. Please correct me if I'm wrong.

    In my PB, there are at least 300 developers work at the moment - is possible to limit this information to a specific event to ALTER SYSTEM? In addition, we are in a WINDOWs environment. If cron does not work. It would be much better if I could device a method to write the details of the session incriminated at a table.

    Do you think below would work?

    create or replace TRIGGER UNI. USYSTEM_B_ALTER_SYS_AUDIT_TRIG
    FRONT
    CREATE OR CHANGE OR DROP OR TRUNCATE
    ON THE SYSTEM. SCHEMA
    declare
    ......

    Kind regards
    Lucette

    Published by: lollipop on October 12, 2009 12:18

    You don't need to set the parameter audit_sys_operations . What you need is that one specific user to AUDIT

  • RMAN alert log Message: ALTER SYSTEM ARCHIVE LOG

    Creates a new database Oracle 10.2.0.4 and now see "ALTER SYSTEM ARCHIVE LOG" in the journal of the alerts that when online RMAN backup is executed:
    Wed Sep 26 21:52:03 2009
    ALTER SYSTEM ARCHIVE LOG
    Wed Sep 26 21:52:03 2009
    Thread 1 Advanced to record the sequence of 35 (switch LGWR)
    Currently Journal # 2 seq # 35 mem # 0: /u01/app/oracle/oradata/aatest/redo02.log
    Currently Journal # 2 seq # 35 mem # 1: /u03/oradata/aatest/redo02a.log
    Wed Sep 26 21:53:37 2009
    ALTER SYSTEM ARCHIVE LOG
    Wed Sep 26 21:53:37 2009
    Thread 1 Advanced to record the sequence of 36 (switch LGWR)
    Currently Journal # 3 seq # 36 mem # 0: /u01/app/oracle/oradata/aatest/redo03.log
    Currently Journal # 3 seq # 36 mem # 1: /u03/oradata/aatest/redo03a.log
    Wed Sep 26 21:53:40 2009
    From control autobackup
    Autobackup written control disk device
    handle ' / u03/exports/backups/aatest/c-2538018370-20090826-00'.

    I not publish a swiitch log command. The RMAN commands, I am running are:
    CONFIGURE REDUNDANCY 2 RETENTION STRATEGY;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / u03/exports/backups/aatest/%F';
    SET UP THE DEVICE TYPE DISK TYPE OF BACKUP TO COMPRESSED BACKUPSET;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ' / u03/exports/backups/aatest/%d_%U';
    BACKUP DATABASE MORE ARCHIVELOG;
    DELETE NOPROMPT OBSOLETE;
    DELETE NOPROMPT ARCHIVELOG UNTIL ' SYSDATE-2';

    I do not see this message on any other 10.2.0.4 instances. Someone has seen this and if yes why it shows in the log?

    Thank you

    Curt Swartzlander

    There is no problem with the log command. Please refer to the documentation for more information on the syntax 'PLUS ARCHIVELOG '.

    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14192/bkup003.htm#sthref377

    Adding BACKUP... MORE ARCHIVELOG causes RMAN, follow these steps:

    * 1. Executes the ALTER SYSTEM ARCHIVE LOG CURRENT command.*

    * 2. All runs THE BACKUP ARCHIVELOG. Note that if backup optimization is enabled, then RMAN passes the newspapers that he has already saved to the specified device

    * 3. Backup the rest of the files specified in BACKUP command.*

    * 4. Executes the ALTER SYSTEM ARCHIVE LOG CURRENT command.*

    * 5. Backup of all remaining archived logs generated during the backup.*

    This ensures that backups of data taken when the command file is recoverable in a consistent state.

  • ALTER SYSTEM SET SGA_TARGET

    Hello
    in 10g R2 should I power of database when I change sGA_TARGET:

    ALTER SYSTEM SET SGA_TARGET = value [SCOPE = {SPFILE |}] MEMORY | BOTH}]

    Thank you.

    user522961 wrote:
    Hello
    in 10g R2 should I power of database when I change sGA_TARGET:

    ALTER SYSTEM SET SGA_TARGET = value [SCOPE = {SPFILE |}] MEMORY | BOTH}]

    Thank you.

    You don't need to restart the database for this change.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/initparams193.htm

  • Using the copy Flash "alter system suspend '"

    Hello friends,

    I just had the opportunity to have the IBM/Tivoli to present a new feature called Advanced Copy Services.
    This feature offers the possibility to take a copy of 'flash' very fast to a database (hot water), and then copy it to another partition of HDD or on SAN or network server, and then allows us to use RMAN to perform a normal "flashcopied" database copy The time it takes to make a copy of 'flash' is expressed in only a few minutes. In fact, I would like to know precisely how long it takes for a real database about 300 GB.

    The whole point of the software is to eliminate the need for long time for backups.

    This sounds good, and I'm trying to understand how this can be done.

    Apparently, Oracle has a (fairly new) modifies the system suspend and resume command that makes this possible.

    Someone at - he used these change orders in the system for this purpose (flashcopy and backups)? Is it really possible to run for this purpose?

    I found a few sites with information on this subject and it seems that this can be done as the seller says.
    When Oracle offer this new feature? I wasn't aware of this.

    NOTE: When I did a few tests, I "suspended" the database, yet I could still select tables, but I could not perform any DDL and DML. Apparently suspends performs a form of locking transaction on all objects in the database.

    Thank you.

    JI Li

    Is your goal to a backup or a copy of the database?

    I used flash for both, but the Services of integrated advanced copy the Flashcopy and Tivoli Storage Manager with the Protection of data for instant capture devices. I never wanted to integrate Flash copy with Tivoli, my main goal was a brief overview of the database for backup or duplication. I always once a flash for backup just manually send the Flash files to TSM. If there are a few advanages it to integrate Flash and TSM, I have never done.

    I've never used suspends alter system as part of the copy of flash, because it suspends all I/o operations and for copy makes flash a recovery managed on the other end eliminates this need however if your database is large enough with enough file Flash with the suspension systems may not be all that practice because I had a database that took almost 5 minutes to get the flash has started on all of its volumes and the suspension for that length of time I'd be against. However Metro Mirror (PPRC) I think requires suspends, so, according to the technology behind the presences for advanced copy Services may be required esp if the wish is to leave the boundaries of the San to copy/backup however documentation is really taking only about copy flash.

    I would like to ask the question how long will be my database must be in a sleep state? As I have indicated that if the database has a large number of volumes that need to be flashed this might take a bit so if you have a busy database that could be a factor to consider.

    One thing I wonder is if you need to maintain the drive around because the flash back for quick restoration why not only run a physical standby and run backup from it with PDT it will serve the purpse even unloading the backup to another server, and when you re-instantiate the day before use flash for this not to mention some of the other benefits you get to have physics of the day before.

    Then, look carefully the benefits and disadventages of the use of GBA in your environment based on your needs and your requirements.

    Just some thoughts

  • ALTER SYSTEM SET _awr_flush_threshold_metrics = REAL SCOPE is MΘMOIRE;.

    Hello
    our database in 10g R2 on Win 2003 server has restarted all of a sudden with this message in alertlog:
    ALTER SYSTEM SET awrflush_threshold_metrics = TRUE SCOPE = MΘMOIRE;

    I searched this parameter in the oracle documentation, I found not.
    1 - What is this setting for?
    2. How do I see which connection of the user changed this setting?
    Thank you.

    It is used to toggle the Flushing AWR Workload Metrics

    Published by: SKU on January 28, 2009 02:17

  • Hi, I have installed Oracle 11 g database express edition on my PC so that I can study and prepare for my certification exam. I was practicing and I published the following command.  'Alter system set Cluster_Database = True Scope = spfile' it worked grea

    SQL * more: Production of release 11.2.0.1.0 Mar 5 13:28:10 Aug 2014

    Copyright (c) 1982, 2010, Oracle.  All rights reserved.

    Enter the user name: sys as sysdba

    Enter the password:

    Connect to an instance is idle.

    SQL > bootable media.

    ORA-00439: feature not enabled: Real Application Clusters

    SQL >

    If the database does not start with the current settings, you will need to manually correct the server parameter file (spfile). This is untested so at your own risk:

    SQL > conn / as sysdba

    SQL > shutdown immediate

    SQL > create spfile from pfile;

    This will create the file pfile C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora

    Make a copy of the pfile as backup

    Edit the pfile origin, remove the line with cluster_database inside and save the file

    SQL > create spfile from pfile;

    SQL > startup

  • alter dump undo header interpretation system

    Hello

    On one case, I got the following result, trying to find all the blocks concerned on an ORA-600 error:

    Wed 11 Nov 18:21:55 2009
    Errors in the /ORA/dbs03/DEST/bdump/dest1_smon_5479.trc file:
    [ORA-00600: internal error code, arguments: [6006], [1] [] [] [], [], []]
    Wed 11 Nov 18:21:55 2009
    Errors in the /ORA/dbs03/DEST/bdump/dest1_m000_5499.trc file:
    SMON: mark the 12 as rollback segment needs recovery
    DEST1 Instance ORACLE (pid = 8)-600 error encountered during my convalescence (12: 39) transaction on the object 3749.

    Query
    SQL > select status, nom_segment, file_id, segment_id dba_rollback_segs;

    SEGMENT_ID STATUS FILE_ID NOM_SEGMENT
    ---------- ------------------------------ ---------------- ----------
    12 _SYSSMU12$ 4 RECOVERY NEEDS

    SQL > alter system dump undo header ' _SYSSMU12$ ';

    I get:

    0 27 10 x 90 x 0 0 x 4428 0 x 0007 0x0586.fd4cd83d 0x0100216e 0x0000.000.00000000 0x00000001 0x00000000 0

    How can I retrieve the id of the block and data file numbers: 0x0100216e

    In a similar situation, I saw on a case of Oracle support:
    0 13 10 x 0 x 90 0x1a7aba 0x007f 0x0588.a98cd69e 0x0152b575 0x0000.000.00000000 0x00000001 0x00000000 0


    -> > 0x0152b575

    0x0152b575-> > folder 5, block 1226101

    Thanks for your help!

    You need convert hexadecimal into decimal.

    http://www.Statman.info/conversions/hexadecimal.html

    0x0100216e = 16785774

    A similar example here: -.

    http://www.ubtools.com/jira/browse/QA-35

Maybe you are looking for

  • How to remove an obsolete Yosemite update?

    To solve some problems of the system, with version beta of El Capitan, I recently went in the preferences system for the App Store has chosen not to receive updates of pre-release and then installed the ordinary El Capitan (10.11.2).  It was a week o

  • The search for exact strings (and the right formula)

    I am using FIND instruction to search multiple strings in a larger formula. The original formula that I do stand out is the following: = IF (ISNUMBER (FIND ('INC', A1)),' ', 'Y') Of course, this gives a Y if he finds some text in "". "" However, I ha

  • DNS server for the WRT54GS v6 problem

    This router running for 2 years without any problem (even on Windows7 since las year), recently it wont let me conect to the internet, network and say sharing that the configuration of the computer center are good but no response from the DNS server

  • Cannot open the icons on the desktop

    Once I open an icon on the desktop and I can't close it open it again.

  • coding problem

    When I install or / and run soft linked non-Microsoft on my PC in English, it works fine. As soon as I try to run some software in another language, he starts, but in the unreadeble format. I tried to change location and 1st, that it seems that the p