SYSAUX  AT 0 BYTES

EM Console was not working anymore.
When I checked, the SYSAUX is at zero bytes in the DBA_DATA_FILES.
PSQL is working.
Archiving is activated.
How can this be recovered.

a 0 byte datafile in dba_data_files? I never saw that.
Please provide :
select file_id,bytes from dba_data_files where tablespace_name='SYSAUX';
and
select version from v$instance;

Similar Messages

  • Sysaux tablespace running low !!

    Hi
    My sysaux tablespace is running low. It was created with autoextend and the max size it can autoextend on is 3 GB. Please check the following
    SQL> select TABLESPACE_NAME, FILE_NAME, BYTES/(1024*1024), AUTOEXTENSIBLE, MAXBYTES/(1024*1024)
    2 from dba_data_files
    3 where tablespace_name = 'SYSAUX';
    TABLESPACE FILE_NAME BYTES/(1024*1024) AUT MAXBYTES/(1024*1024)
    SYSAUX H:\ORACLE\ORADATA\STUTEST\SYSAUX01.DBF 3175.28125 YES 32767
    What is the best practise? Do i have to add another datafile in sysaux tablespace with same size and auto extensible max size to 3 gb?
    Thanks for your help!!!

    It depends on your requirement. If you have any job running which will trigger an alert about space utilization or you are using OEM to see the space utilization then probably you can keep the autoextend off and resize the datafile when require else you can keep it on.
    Regards

  • How to release space of SYSAUX tablespace

    Hi,
    I am now using htmldb 2.0 and created tens of tables in one schema. Several tables are stored in tablespace SYSAUX. Since now I am trying to store a big file to the table(1GB), I found the tablespace grows pretty fast and I have to extend the size. The odd thing is when I delete that file from my table, SYSAUX tablespace seems not release any room and when I insert the big file again into the table, SYSAUX grows again. How can I release the space then? I can't image that why it can't release any room. I also check the occupants of SYSAUX and found one occupant called "other" takes over 90% of space. I tried to move it out of SYSAUX, it doesn't work. What do "other" do actually? I got completely lost. Any help will be greatly appreciated.
    Linke

    Hi,
    if you drop a table in Oracle 10g,
    you will find teh extents of this table in
    DBA_FREE_SPACE.
    in DBA_FREE_SPACE???
    I don't think so.
    SQL >select ddf.tablespace_name,round(total/1024/1024,3) ttlSize,round((total-nvl(freespace,0))/1024/1024,3) used, round((total-nvl(freespace,0))/total*100,2) usedpct
    from
    (select tablespace_name,sum(bytes) total from dba_data_files group by tablespace_name) ddf,
    (select tablespace_name,sum(bytes) freespace from dba_free_space group by tablespace_name) dfs
    where ddf.tablespace_name=dfs.tablespace_name(+) and ddf.tablespace_name='USERS'; 
    TABLESPACE_NAME                   TTLSIZE       USED    USEDPCT
    USERS                                  16      2.813 17.58
    SQL >create table test (col1 number) storage(initial 2m)
      2  /
    Table created.
    SQL >select ddf.tablespace_name,round(total/1024/1024,3) ttlSize,round((total-nvl(freespace,0))/1024/1024,3) used, round((total-nvl(freespace,0))/total*100,2) usedpct
    from
    (select tablespace_name,sum(bytes) total from dba_data_files group by tablespace_name) ddf,
    (select tablespace_name,sum(bytes) freespace from dba_free_space group by tablespace_name) dfs
    where ddf.tablespace_name=dfs.tablespace_name(+) and ddf.tablespace_name='USERS'; 
    TABLESPACE_NAME                   TTLSIZE       USED    USEDPCT
    USERS                                  16      4.813 30.08<--used 2mb
    SQL >select sum(bytes)/1024/1024 from dba_segments where tablespace_name='USERS'
      2  /
    SUM(BYTES)/1024/1024
                    6.75
    SQL >drop table test
      2  /
    Table dropped.
    SQL >select sum(bytes)/1024/1024 from dba_segments where tablespace_name='USERS'
      2  /
    SUM(BYTES)/1024/1024
                    6.75 <-- kept in the same tablespace

  • Question on 'BYTES' in dba_free_space

    I have 11gr2 db.
    SQL> select sum(bytes)/1024/1024/1024 Gbytes_free
      2                 from  sys.dba_free_space
      3  where tablespace_name = 'AI_TS';
    GBYTES_FREE
      29.328003
    we have 29GB free for tablespace AI_TS
    Let's see what those datafiles in the tablespace:
    SQL> select sum(bytes)/1024/1024/1024 Gbytes_alloc,
      2                                sum(maxbytes)/1024/1024/1024 Gbytes_max        
      3                 from sys.dba_data_files
      4  where   tablespace_name= 'AI_TS';
    GBYTES_ALLOC GBYTES_MAX
       63.839844  63.999969
    We are alomst FULL!
    Question , what the 'BYTES' in dba_free_space ABOUT?
    THANKS!Edited by: msdba on Apr 11, 2013 4:36 PM

    msdba wrote:
    dpapde wrote:
    bytes in dba_free_space means total free extents in the tablespace AI_TS. 29GB may or may not be contiguous extents
    whereas
    bytes in dba_data_files means size of file in bytes which is 63G
    and
    maxbytes in dba_data_files is max file size which is also 63G in case of AI_TS tablespace.I think the "wall" -- sun(maxbtes) as shown in the dba_data_files.
    we are very close to the wall.
    we should waste no time to increase the quota of maxsiize if data file or adding a datafile.
    Let me if i took it wrong.Just remember that BYTES in DBA_DATA_FILES is simply the size of the file.
    When I'm checking to see if a tablespace needs more space, querying dba_tablespace_usage_metrics is quick and easy:
    SQL> select * from dba_tablespace_usage_metrics;
    TABLESPACE_NAME                USED_SPACE TABLESPACE_SIZE USED_PERCENT
    JUSTIN                                128          383710   .033358526
    SYSAUX                             155544          534750    29.087237
    SYSTEM                              94240          468190   20.1285803
    TEMP                                    0          385247            0
    UNDOTBS1                              160          384991   .041559413
    USERS                                2984           16640   17.9326923I'll then use a query to see how data files are allocated and configured in the tablespace, and make any adjustments that are necessary.
    column file_name format a60
    set linesize 150
    select t.tablespace_name, d.file_name, d.bytes/1024/1024 file_mb, d.maxbytes/1024/1024 max_file_mb,
    d.autoextensible, ((d.increment_by*t.block_size)/1024/1024) increment_mb
    from dba_data_files d, dba_tablespaces t
    where d.tablespace_name = t.tablespace_name
    and d.tablespace_name = '&tablespace';
    Enter value for tablespace: JUSTIN
    old   5: and d.tablespace_name = '&tablespace'
    new   5: and d.tablespace_name = 'JUSTIN'
    TABLESPACE_NAME                FILE_NAME                                                       FILE_MB MAX_FILE_MB AUT INCREMENT_MB
    JUSTIN                         /u01/app/oracle/oradata/ORCL/datafile/o1_mf_justin_8mtx19z1_        100       10240 YES          100
                                   .dbf

  • UNDOTBS1 and SYSAUX Tablespace Filename Mismatch in Oracle 11g XE

    Hi,
    We have installed Oracle 11g XE 32 bit on Windows and found that Tablespace name and filenames are mismatched for UNDOTBS1, SYSAUX.
    If you run following query:
    SELECT TABLESPACE_NAME, FILE_NAME FROM DBA_DATA_FILES; You will get below output:
    TABLESPACE_NAME                    FILE_NAME
    ============================================================================
    USERS                C:\ORACLE\ORACLE11GXE\APP\ORACLE\ORADATA\XE\USERS.DBF
    UNDOTBS1           C:\ORACLE\ORACLE11GXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF
    SYSAUX                C:\ORACLE\ORACLE11GXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF
    SYSTEM                C:\ORACLE\ORACLE11GXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBFNotice the difference between UNDOTBS1 and SYSAUX.
    UNDOTBS1 tablespace has filename SYSAUX.DBF while
    SYSAUX tablespace has filename UNDOTBS1.DBF
    Is this a bug or just a wrong name mapping?
    Will this affects the internal behavior of tablespace as well for undo tablespace and APEX Installation?
    Regards,
    Sohil Bhavsar.

    Error: ORA-03297 ... related to this mismatch of UNDOTBS1 with SYSAUXActually its related to trying to resize a file smaller than the existing extents in use, so yes, restores aren't the only place that could cause confusion from the "incorrect" datafile names.
    Fixing it could be done in one pass if you don't mind adjusting filenames so they don't clash, i.e. shut down your database instance and move the files at the OS, startup mount and rename the files in the database.
    Don't use the services applet, the instance has to be shutdown with sqlplus, leave the database service running. If you try to open the database with OS files renamed but not corrected in the instance, the database won't open if there are troubles with the undo datafile.
    sqlplus /nolog
    conn /as sysdba;
      ... connected ...
    col name format a60
    col tsname format a10
    set lines 120
    select t.name tsname,  d.name, d.BYTES / 1024 / 1024 mb from v$tablespace t, v$datafile d where t.ts#  = d.ts#;
    system .../system.dbf  <n>
    shutdown immediate;
    ... database closed ...
    exit
    cd <datafile directory> 
    move sysaux.dbf undotbs01.dbf
    move UNDOTBS1.DBF sysaux.dbf
    # or use file explore GUI after shutdown
    sqlplus /nolog
    conn /as sysdba;
      ... connected to idle instance ...
    startup mount;
      ... SGA, instance size info ...
    alter database rename file 'C:\...<full path>\SYSAUX.DBF' to 'C:\...<full path>\UNDOTBS01.DBF';
    alter database rename file 'C:\...<full path>\UNDOTBS1.DBF' to 'C:\...<full path>\SYSAUX.DBF';
    select t.name tsname,  d.name, d.BYTES / 1024 / 1024 mb from v$tablespace t, v$datafile d where t.ts#  = d.ts#;
    ... make sure you get what was asked for ...
    TSNAME     NAME                                                       MB
    SYSTEM     C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF              360
    SYSAUX     C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF              660
    UNDOTBS1   C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS01.DBF            25
    USERS      C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF               100
    alter database open;
      ... database altered ... 

  • BYTES MAXSIZE in dba_data_files

    Hello,
    i have one Oracle DB 9.2.0.5 running on HPUX, that give me the following result when doing a query on dba_data_files:
    SQL> select maxbytes, bytes from dba_data_files where file_id=32;
    MAXBYTES BYTES
    2147483648 2684354560
    So BYTES is bigger than MAXBYTES...Do you know how this can happen and can this cause a problem in the DB ?

    The MAXSIZE here is autoextend maxsize.
    The possible reason is your altered datafile autoextend maxsize to 2G after datafile actually size grow beyond 2G. Oracle shouldn't allow this but looks like an bug here.
    for example,
    SQL> l
      1* select file_name, maxbytes, bytes from dba_data_files
    SQL> /
    FILE_NAME                                  MAXBYTES      BYTES
    C:\ORACLEXE\ORADATA\XE\USERS.DBF         5368709120  104857600
    C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF        3.4360E+10  272629760
    *C:\ORACLEXE\ORADATA\XE\UNDO.DBF            629145600  110100480*
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF         629145600  356515840
    SQL> alter database datafile 'c:\oraclexe\oradata\xe\undo.dbf' autoextend on maxsize 10M;
    Database altered.
    SQL> select file_name, maxbytes, bytes from dba_data_files;
    FILE_NAME                                  MAXBYTES      BYTES
    C:\ORACLEXE\ORADATA\XE\USERS.DBF         5368709120  104857600
    C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF        3.4360E+10  272629760
    C:\ORACLEXE\ORADATA\XE\UNDO.DBF            10485760  110100480
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF         629145600  356515840

  • ORA-01578: ORACLE data block corrupted on tables in sysaux tablespace

    Dear Experts,
    From the alert log file we noticed data block corruptions on one of our datafiles. After further investigation, we realized that the corruptions were on 3 of the AWR related tables in the SYSAUX tablespace:
    1. WRH$_LIBRARYCACHE
    2. WRH$_TEMPSTATXS
    3. WRI$_ALERT_OUTSTANDING
    The bad news is that we may not have a valid rman backup to do the recovery due to the retention policy - RECOVERY WINDOW OF 2 DAYS. Since this is a development database with limited monitoring, we did not discover the corruption until 6 days later. The issue happened about 6 days ago (about Christmas time).
    So, what are our recovery options? Can someone advice? We are thinking about drop and recreate the 3 affected v$WR* tables, but not quite sure about the impact to the system if we drop and recreate the 3 objects. Did someone experience this type of recovery. If you did, what are your approaches?
    We are running oracle 10.2.0.3 version.
    I greatly appreciate your input and suggestion. Thanks!!!

    as long as you have a backup of ur database before christmas, you can use the " MAXDAYS " cmd to get ur backup working so long as you have not used delete obsolote....had a same sistuation....where i had a backup and trying to restore it ...kept saying no valid backup...after going thru some stuff...found the MAXDAYS cmd to use my backup...here is an example ...
    $ rman target /
    Recovery Manager: Release 10.2.0.2.0 - Production on Sun Apr 6 09:05:44 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database (not started)
    RMAN> SET DBID=1528894801
    executing command: SET DBID
    RMAN> startup force nomount;
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/dbs/initsameera.ora'
    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started
    Total System Global Area 159383552 bytes
    Fixed Size 1259672 bytes
    Variable Size 58722152 bytes
    Database Buffers 92274688 bytes
    Redo Buffers 7127040 bytes
    RMAN> set controlfile autobackup format for device type disk to '/u99/backup/sameera/control_spfile_%F';
    executing command: SET CONTROLFILE AUTOBACKUP FORMAT
    using target database control file instead of recovery catalog
    RMAN> run
    2> {
    3> allocate channel p1 type disk;
    4> restore spfile to pfile '/u01/app/oracle/product/10.2.0/db_1/dbs/initsameera.ora' from autobackup;
    5> shutdown abort;
    6> }
    allocated channel: p1
    channel p1: sid=36 devtype=DISK
    Starting restore at 06-APR-08
    channel p1: looking for autobackup on day: 20080406
    channel p1: looking for autobackup on day: 20080405
    channel p1: looking for autobackup on day: 20080404
    channel p1: looking for autobackup on day: 20080403
    channel p1: looking for autobackup on day: 20080402
    channel p1: looking for autobackup on day: 20080401
    channel p1: looking for autobackup on day: 20080331
    channel p1: no autobackup in 7 days found
    released channel: p1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 04/06/2008 09:09:09
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Solution:
    RMAN> shutdown abort;
    RMAN> EXIT;
    $ ps -ef |grep pmon
    oracle 2891 2856 0 09:05 pts/1 00:00:00 grep pmon
    oracle 7448 1 0 Apr05 ? 00:00:00 ora_pmon_primary
    $export ORACLE_SID=sameera
    $ rman target /
    Recovery Manager: Release 10.2.0.2.0 - Production on Sun Apr 6 09:05:44 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database (not started)
    RMAN> SET DBID=1528894801
    executing command: SET DBID
    RMAN> startup force nomount;
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/db s/initsameera.ora'
    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started
    Total System Global Area 159383552 bytes
    Fixed Size 1259672 bytes
    Variable Size 58722152 bytes
    Database Buffers 92274688 bytes
    Redo Buffers 7127040 bytes
    RMAN> set controlfile autobackup format for device type disk to '/u99/backup/sameera/control_spfile_%F';
    executing command: SET CONTROLFILE AUTOBACKUP FORMAT
    using target database control file instead of recovery catalog
    RMAN> run
    2> {
    3> allocate channel p1 type disk;
    4> restore spfile to pfile '/u01/app/oracle/product/10.2.0/db_1/dbs/initsameera.ora' from autobackup maxdays 15;
    5> shutdown abort;
    6> }
    released channel: ORA_DISK_1
    allocated channel: p1
    channel p1: sid=36 devtype=DISK
    Starting restore at 06-APR-08
    channel p1: looking for autobackup on day: 20080406
    channel p1: looking for autobackup on day: 20080405
    channel p1: looking for autobackup on day: 20080404
    channel p1: looking for autobackup on day: 20080403
    channel p1: looking for autobackup on day: 20080402
    channel p1: looking for autobackup on day: 20080401
    channel p1: looking for autobackup on day: 20080331
    channel p1: looking for autobackup on day: 20080330
    channel p1: looking for autobackup on day: 20080329
    channel p1: looking for autobackup on day: 20080328
    channel p1: looking for autobackup on day: 20080327
    channel p1: looking for autobackup on day: 20080326
    channel p1: looking for autobackup on day: 20080325
    channel p1: looking for autobackup on day: 20080324
    channel p1: looking for autobackup on day: 20080323
    channel p1: autobackup found: /u99/backup/sameera/control_spfile_c-1528894801-20080323-00
    channel p1: SPFILE restore from autobackup complete
    Finished restore at 06-APR-08
    Oracle instance shut down
    Check to make sure if initsameera.ora exists in $ORACLE_HOME/dbs location.
    $ cd $ORACLE_HOME/dbs
    $ ls -ltr
    total 7052
    -rw-r----- 1 oracle oinstall 2560 Apr 5 13:21 spfileprimary.ora
    -rw-r----- 1 oracle oinstall 7061504 Apr 5 13:23 snapcf_primary.f
    -rw-rw---- 1 oracle oinstall 1544 Apr 5 18:42 hc_sameera.dat
    -rw-r--r-- 1 oracle oinstall 1087 Apr 6 09:12 initsameera.ora
    $ pwd
    /u01/app/oracle/product/10.2.0/db_1/dbs
    $

  • Restore & Recover SYSAUX datafile while DB up

    Hi,
    Due to data block corruption of SYSAUX, need to keep it offline then recover and make it online.
    sql 'alter database datafile 2 offline';
    restore datafile 2;
    recover datafile 2;
    sql 'alter database datafile 2 online';
    Is it possible to do this operation while Database is up? or we need to keep it down?
    BANNER
    Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for Linux: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    Thanks
    Edited by: Nadvi on Jun 10, 2010 10:02 PM
    Edited by: Nadvi on Jun 10, 2010 10:28 PM

    Nadvi wrote:
    Hi,
    Due to data block corruption of SYSAUX, need to keep it offline then recover and make it online.
    sql 'alter database datafile 2 offline';
    restore datafile 2;
    recover datafile 2;
    sql 'alter database datafile 2 online';
    Is it possible to do this operation while Database is up? or we need to keep it down?
    BANNER
    Oracle Database 11g Release 11.1.0.6.0 - 64bit Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for Linux: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    ThanksDear Nadvi
    Why you don't perform Block Media Recovery on the corrupted data blocks using RMAN?
    In the following example I show how you can recover corrupted data block in the SYSAUX tablespace. However, as you use Oracle 11g, you will use the following syntax:
    RECOVER DATAFILE datafile_no BLOCK block)no Here's the example:
    SQL> create user test identified by test;
    User created.
    SQL> grant dba to test;
    Grant succeeded.
    SQL> conn test/test
    Connected.
    SQL> create table tbl_test (name varchar2(10)) tablespace sysaux;
    Table created.
    SQL> insert into tbl_test values('test');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> SELECT header_block FROM dba_segments WHERE segment_name='TBL_TEST';
    HEADER_BLOCK
            2939
    SQL> select tablespace_name from dba_segments where segment_name='TBL_TEST';
    TABLESPACE_NAME
    SYSAUX
    RMAN> backup database plus archivelog delete input;
    [oracle@localhost ~]$ dd of=/u01/oracle/product/10.2.0/db_1/oradata/db1/sysaux01.dbf bs=8192 conv=notrunc seek=2939 <<EOF
    corruption
    EOF0+1 records in
    0+1 records out
    11 bytes (11 B) copied, 0.0182719 seconds, 0.6 kB/s
    SQL> alter system flush buffer_cache;
    System altered.
    SQL> conn test/test
    Connected.
    SQL> select * from tbl_test;
    select * from tbl_test
    ERROR at line 1:
    ORA-01578: ORACLE data block corrupted (file # 3, block # 2939)
    ORA-01110: data file 3:
    '/u01/oracle/product/10.2.0/db_1/oradata/db1/sysaux01.dbf'
    RMAN> blockrecover datafile 3 block 2939;
    starting media recovery
    media recovery complete, elapsed time: 00:00:07
    Finished blockrecover at 10-JUN-10
    RMAN> exit
    SQL> conn test/test
    Connected.
    SQL> select * from tbl_test;
    NAME
    testFor more information on Block Media Recovery, you can watch my Video Tutorial
    http://kamranagayev.wordpress.com/2010/03/18/rman-video-tutorial-series-performing-block-media-recovery-with-rman/

  • XE11: sysaux & undo tablespaces and files

    Hello,
    does anyone recognized the mixed names of sysaux and undo tablespaces?
    If i use:
    SQL> SELECT file_name, tablespace_name, ROUND(bytes/1024000) MB
    SQL> FROM dba_data_files
    SQL> ORDER BY 1;
    then i will get:
    FILE_NAME TABLESPACE MB
    C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF UNDOTBS1 26
    C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF SYSTEM 369
    C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF SYSAUX 666
    C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF USERS 102
    The file SYSAUX.DBF points to tablespace UNDOTBS1 and
    the file UNDOTBS1.DBF points to tablespace SYSAUX
    Could this cause a Problem ?
    Can this be solved?
    This is only in the windows-version, not in the linux-version.
    Best reagrds
    AK

    Hello,
    i did the following:
    SQLPLUS:
    SHUTDOWN IMMEDIATE;
    AS ADMINISTRATOR:
    COPY C:\oraclexe\app\oracle\oradata\XE\SYSAUX.DBF C:\oraclexe\app\oracle\oradata\XE\UNDOTBS2.DBF
    COPY C:\oraclexe\app\oracle\oradata\XE\UNDOTBS1.DBF C:\oraclexe\app\oracle\oradata\XE\SYSAUX2.DBF
    SQLPLUS:
    STARTUP MOUNT:
    ALTER DATABASE RENAME FILE 'C:\oraclexe\app\oracle\oradata\XE\SYSAUX.DBF' TO 'C:\oraclexe\app\oracle\oradata\XE\UNDOTBS2.DBF';
    ALTER DATABASE RENAME FILE 'C:\oraclexe\app\oracle\oradata\XE\UNDOTBS1.DBF' TO 'C:\oraclexe\app\oracle\oradata\XE\SYSAUX2.DBF';
    ALTER DATABASE OPEN;
    SHUTDOWN IMMEDIATE;
    AS ADMINISTRATOR:
    COPY C:\oraclexe\app\oracle\oradata\XE\SYSAUX2.DBF C:\oraclexe\app\oracle\oradata\XE\SYSAUX.DBF (overwrite y)
    COPY C:\oraclexe\app\oracle\oradata\XE\UNDOTBS2.DBF C:\oraclexe\app\oracle\oradata\XE\UNDOTBS1.DBF (overwrite y)
    SQLPLUS:
    STARTUP MOUNT:
    ALTER DATABASE RENAME FILE 'C:\oraclexe\app\oracle\oradata\XE\SYSAUX2.DBF' TO 'C:\oraclexe\app\oracle\oradata\XE\SYSAUX.DBF';
    ALTER DATABASE RENAME FILE 'C:\oraclexe\app\oracle\oradata\XE\UNDOTBS2.DBF' TO 'C:\oraclexe\app\oracle\oradata\XE\UNDOTBS1.DBF';
    ALTER DATABASE OPEN;
    SHUTDOWN IMMEDIATE;
    AS ADMINISTRATOR:
    DEL C:\oraclexe\app\oracle\oradata\XE\SYSAUX2.DBF
    DEL C:\oraclexe\app\oracle\oradata\XE\UNDOTBS2.DBF
    SQLPLUS:
    STARTUP
    RMAN:
    REPORT SCHEMA;
    Spooling started in log file: switch.txt
    Recovery Manager11.2.0.2.0
    RMAN>
    Report of database schema for database with db_unique_name XE
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace RB segs Datafile Name
    1 360 SYSTEM *** C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSTEM.DBF
    2 650 SYSAUX *** C:\ORACLEXE\APP\ORACLE\ORADATA\XE\SYSAUX.DBF
    3 25 UNDOTBS1 *** C:\ORACLEXE\APP\ORACLE\ORADATA\XE\UNDOTBS1.DBF
    4 100 USERS *** C:\ORACLEXE\APP\ORACLE\ORADATA\XE\USERS.DBF
    List of Temporary Files
    =======================
    File Size(MB) Tablespace Maxsize(MB) Tempfile Name
    1 20 TEMP 32767 C:\ORACLEXE\APP\ORACLE\ORADATA\XE\TEMP.DBF
    RMAN>
    Recovery Manager complete.
    It's not looking elegant but it's working.
    Is there a other way?
    Best regards.

  • How Increase SYSAUX table space

    Hi,
    After running the script
    REM
    REM START OF SQL
    REM
    set pagesize 132
    set linesize 80
    column tspace_name format a21
    column Pcent_Free format 99.9
    column MB_Free format 999,999
    column MB_Total format 999,999
    select z.tablespace_name tspace_name,
    (select sum(b.bytes)/(1024*1024) from dba_free_space b where b.tablespace_name = z.tablespace_name) MB_Free,
    (select sum(a.bytes)/(1024*1024) from dba_data_files a where a.tablespace_name = z.tablespace_name) MB_Total,
    ((select sum(b.bytes)/(1024*1024) from dba_free_space b where b.tablespace_name = z.tablespace_name)/(select sum(a.bytes)/(1024*1024) from dba_data_files a where a.tablespace_name = z.tablespace_name)*100) Pcent_Free
    from dba_tablespaces z
    order by z.tablespace_name
    REM
    REM END OF SQL
    REM
    ====================================================================
    I got an O/P.
    TSPACE_NAME MB_FREE MB_TOTAL PCENT_FREE
    APPS_TS_ARCHIVE 367 866 42.4
    APPS_TS_INTERFACE 253 1,041 24.3
    APPS_TS_MEDIA 278 1,446 19.2
    APPS_TS_NOLOGGING 26 64 40.0
    APPS_TS_QUEUES 921 1,000 92.1
    APPS_TS_SEED 455 3,038 15.0
    APPS_TS_SUMMARY 253 1,146 22.1
    APPS_TS_TOOLS 500 500 #####
    APPS_TS_TX_DATA 778 5,992 13.0
    APPS_TS_TX_IDX 1,170 8,462 13.8
    APPS_UNDOTS1 1,235 1,730 71.4
    CTXD 3 18 18.1
    ODM 2 12 20.3
    OLAP 17 17 99.6
    OWAPUB 10 10 99.2
    PORTAL 100 100 99.5
    SYSAUX 1 446 .3
    SYSTEM 1,895 12,681 14.9
    TEMP1
    TEMP2
    20 rows selected.
    Can any one will give me the complete procedure to increase the space in SYSAUX tablespace?
    Regards,
    Niranjan

    Hi;
    What is your DB version?
    You can use toad etc program for increase your related tablespace or you can use below command
    ALTER DATABASE DATAFILE '/xxx/sysaux01.dbf' RESIZE 2000M;
    or you can give autoextend as follow:
    ALTER DATABASE DATAFILE '/xxx/sysaux01.dbf' AUTOEXTEND ON NEXT 100M MAXSIZE 5000M;
    Regard
    Helios

  • How Do I Load An Animated GIF Into PictureBox Control From Byte Array?

    I'm having a problem with loading an animated GIF int a picturebox control in a C# program after it has been converted to a base64 string, then converted to a byte array, then written to binary, then converted to a base64 string again, then converted to
    a byte array, then loaded into a memory stream and finally into a picturebox control.
    Here's the step-by-step code I've written:
    1. First I open an animated GIF from a file and load it directly into a picturebox control. It animates just fine.
    2. Next I convert the image in the picturebox control (pbTitlePageImage) to a base64 string as shown in the code below:
                    if (pbTitlePageImage.Image != null)
                        string Image2BConverted;
                        using (Bitmap bm = new Bitmap(pbTitlePageImage.Image))
                            using (MemoryStream ms = new MemoryStream())
                                bm.Save(ms, ImageFormat.Jpeg);
                                Image2BConverted = Convert.ToBase64String(ms.ToArray());
                                GameInfo.TitlePageImage = Image2BConverted;
                                ms.Close();
                                GameInfo.TitlePageImagePresent = true;
                                ProjectNeedsSaving = true;
    3. Then I write the base64 string to a binary file using FileStream and BinaryWriter.
    4. Next I get the image from the binary file using FileStream and BinaryReader and assign it to a string variable. It is now a base64 string again.
    5. Next I load the base64 string into a byte array, then I load it into StreamReader and finally into the picturebox control (pbGameImages) as shown in the code below:
    byte[] TitlePageImageBuffer = Convert.FromBase64String(GameInfo.TitlePageImage);
                            MemoryStream memTitlePageImageStream = new MemoryStream(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Write(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Position = 0;
                            pbGameImages.Image = Image.FromStream(memTitlePageImageStream, true);
                            memTitlePageImageStream.Close();
                            memTitlePageImageStream = null;
                            TitlePageImageBuffer = null;
    This step-by-step will work with all image file types except animated GIFs (standard GIFs work fine). It looks like it's just taking one frame from the animation and loading it into the picturebox. I need to be able to load the entire animation. Does any of
    the code above cause the animation to be lost? Any ideas?

    There is an ImageAnimator so you may not need to use byte array instead.
    ImageAnimator.Animate Method
    http://msdn.microsoft.com/en-us/library/system.drawing.imageanimator.animate(v=vs.110).aspx
    chanmm
    chanmm

  • NetBeans MobilityPack 5 BUG?? how can I send a byte array?

    I�ve created a WebApp and a Simple servlet with one public method.
    public byte[] getStr(byte[] b) {       
    String s = "A string";
    return s.getBytes();
    Then I've used "Mobile To Web App" wizard to generate stubs to that getStr method. And when I�ve tried to call that getStr method:
    byte[] aByte = "st".getBytes();
    byte[] b = client.getStr(aByte);
    I've got an error at Server in Utility.java in generated ReadArray method.
    * Reads an array from the given data source and returns it.
    *@param source The source from which the data is extracted.
    *@return The array from the data source
    *@exception IOException If an error occured while reading the data.
    public static Object readArray(DataInput in) throws IOException {
    short type = in.readShort();
    int length = in.readInt();
    if (length == -1) {
    return null;
    } else {
    switch (type) {
    case BYTE_TYPE: {
    byte[] data = new byte[length];
    in.readFully(data);
    return data;
    default: {
    throw new IllegalArgumentException("Unsupported return type (" + type + ")");
    At this line "in.readFully(data);" I�ve got an EOFException.
    The the aByte = "st".getBytes(); was 2bytes long and at the server "int length = in.readInt();" it was 363273. Why?
    All code was generated by NetBeans Mobility pack 5 it's not mine so its a bug?
    How can I fix this?

    I found that bug. I've described it here
    http://www.netbeans.org/issues/show_bug.cgi?id=74109
    There's a solution how to fix the generated code.

  • View images in a datatable from byte[]

    I am trying to view images in a datatable where the image is
    a byte[]. This is what I tried... doesn't work.
    <h:dataTable rows="5" value="#{AirportList.airportList}" var="airport" binding="#{AirportList.airportData}">
              <h:column>
                <f:facet name="header">
                  <h:outputText value="airportCode"/>
                </f:facet>
                <h:outputText value="#{airport.airportCode}"/>
              </h:column>
              <h:column>
                <f:facet name="header">
                  <h:outputText value="airportMap"/>
                </f:facet>
                  <h:inputHidden id="ole" value="#{airport.airportMap}"/>
                  <h:outputText value="#{AirportList.myMap}"/>
                 <div>
                 <!--
                      try
                        byte[] pic = (byte[])request.getAttribute("AirportList.myMap");
                        response.setContentType("image/jpeg");
                        OutputStream os = null;
                        os = response.getOutputStream() ;
                       // os.write(pic);
                        os.close();
                        os = null;
                      catch (Exception ex)
                        out.println("Exception: " + ex.getMessage());
                        ex.printStackTrace();
                   -->
                  </div>
              </h:column>
              <h:column>
                <f:facet name="header">
                  <h:outputText value="airportSugBook"/>
                </f:facet>
                <h:outputText value="#{airport.airportSugBook}"/>
              </h:column>
            </h:dataTable>

    my backing code
    public class Airport
      Collection AirportList;
      private UIData AirportData;
      byte[] MyMap;
      public Airport()
      public Collection getAirportList()
        try{
          InitialContext context = new InitialContext();
          AirportLOBLocalHome home =  (AirportLOBLocalHome)context.lookup("java:comp/env/ejb/local/AirportLOBLocal");
          AirportLOBLocal local = home.create();
          AirportList = local.showAirports();
          Iterator it = AirportList.iterator();
          while(it.hasNext())
            ((OtnAirportLobDetailsLocalDTO)it.next()).getAirportMap();
          return AirportList;
        catch(Throwable e)
          e.printStackTrace();
        return null;
      public void setAirportList(Collection AirportList)
        this.AirportList = AirportList;
      public UIData getAirportData()
        return AirportData;
      public void setAirportData(UIData AirportData)
        this.AirportData = AirportData;
      public byte[] getMyMap()
        OtnAirportLobDetailsLocalDTO ap = (OtnAirportLobDetailsLocalDTO)AirportData.getRowData();
        return ap.getAirportMap();
       // return null;
      public void setMyMap(byte[] MyMap)
        this.MyMap = MyMap;
    }

  • The vi is identifyng the number of bytes to be read but the VISA Read vi is not able to read the data from the port.

    We are trying to communicate with the AT106 balance of Mettler Toledo.The VI is attached.
    We are sending in "SI" which is a standard command that is recoginsed by the balance. The balance reads it.The indicator after the property node indicates that there are 8 bytes available on the serial port. However, the VISA read VI fails to read the bytes at the serial port and gives the following error:
    Error -1073807253 occurred at VISA Read in visa test.vi
    Possible reason(s):
    VISA: (Hex 0xBFFF006B) A framing error occurred during transfer.
    The Vi is atttached.
    Thanks
    Vivek
    Attachments:
    visa_test.vi ‏50 KB

    Hello,
    You should also definitely check the baud rates specified; a framing error often occurs when different baud rates are specified, as the UARTs will be attempting to transmit and receive at different rates, causing the receiving end to either miss bits in a given frame, or sample bits more than once (depending on whether the receiving rate is lower or higher respectively). You should be able to check the baud rate used by your balance in the user manual, and match it in your VI with the baud rate parameter of the VISA Configure Serial Port VI.
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How can I create files in unicode format without "byte order mark"?

    Hello together,
    I have to export files in UTF-8 format and have to send them to another partner system which works with linux as operating system.
    I have tried the different possibities to create files with ABAP. But nothing works 100% how I want.
    Some examples:
    1.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
    If I create a file in this way and download it from application server to local system the result for file format in a unicode text edior like NotePad is "ANSI AS UTF-8". This means I have no BYTE ORDER MARK inside.
    But it is also possible that the file format is only ANSI if the file contains no "special characters", isn't it?
    In my test cases I create 3 files. 2 of them has format "ANSI AS UTF-8", and one only "ANSII".
    After transfer to Linux I get as result 2 times UTF8 and one time ASCII as file format.
    2.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8 WITH BYTE ORDER MARK.
    With this syntax the result in local editor looks like ok. I get as format really "UTF-8".
    But I get problems with the system which receives the files.
    All files has the file format UTF-8 on Linux but the interface / script can not read the file with BYTE ORDER MARK.
    This is a very big problem for me.
    Do anybody of you know if it possible to force creation in UTF-8 without a BYTE ORDER MARK?
    This means more or less the first example but all files should have UTF-8 format!
    Thanks in advance
    Christian

    This means it is not possible to create a pure unicode file without the byte order mark?
    You wouldn't happen to know how a file with byte order mark should read on a Linux system?
    Or if this possible or not?
    Regards
    Christian

Maybe you are looking for

  • Audition CS6 files not showing in PPro

    From PPro, I did the "Edit...Edit in Adobe Audition...Sequence" command. This opened the all the clip audio files as a group in Audition as expected. Got done with editing in Audition, saved projected in Audition via "File...Save" command. Go back to

  • Can you link a pdf form to a live database (access) (act)

    Can Designer create a form that can access a database live to get data and then relay the filled in information back to the database ie job number xxxxx (from database)  Client xxxxxxx (from database) time on job xxxxx (input on form and uploaded bac

  • Files not opening correctly

    When I try to open a 3rd or 4th file in Illustrator, all I get is a gray page. I get the rulers, but the artboard and document don't show. It appears to me that I am running out of memory, but why whouldn't virtual memory be kicking in? I have over 5

  • Web logic server install - ebLogic 10.3.5 on Linux X86-64

    Hi All, I was able to install the Wls . I have issue when I try to start Run Quick Start fails with /cust/home/oracle/Middleware/utils/quickstart/quickstart.sh: line 15: /usr/lib/jvm/java-1.6.0-sun-1.6.0.31.x86_64/bin/java: No such file or directory.

  • A Thought for This Forum

    We are blessed to have several great articles by Harm Millaard. I have most, if not all, bookmarked and add those links to posts here, and in other fora. I am sure that other "regulars" do similar - matter of fact, I know several who do. Wonder if it