Tablespace 0% free - Oracle / NT

My client copies are failing due to lack of tablespace room.
IN DB02 I have the following info:
Total number                        6                
Total size/kb             152.750.080                
Total free/kb               2.607.104      1 %       
Minimum free/kb                16.384                
Max. autoextensible/kb    563,200,000                
ON Freespace statistics I have:
Tablespace            Freespace          
Maximum/kb      Maximum/kb    Total/kb   
SYSTEM               260032        260928
PSAPUNDO                  0             0
PSAPTEMP                  0             0
PSAPIDS               19392         20544
PSAPIDS640            12224         97408
PSAPIDSUSR            16384         16384
ON Critical Tables/IND...
Tablespace     Freespace     /kb          Next extent/k
     Maximum     Total          
PSAPUNDO          0     0     8.192
PSAPUNDO          0     0     65.536
PSAPUNDO          0     0     8.192
PSAPUNDO          0     0     8.192
PSAPUNDO          0     0     65.536
PSAPUNDO          0     0     65.536
PSAPUNDO          0     0     8.192
PSAPUNDO          0     0     8.192
PSAPUNDO          0     0     65.536
PSAPUNDO          0     0     8.192
I've tried to run DBA planning calendar the actions below:
NEXT Extent. The following command was issued:
BRCONNECT -u / -c -f next -t ALL,PSAPIDS,PSAPIDS640,PSAPIDSUSR,PSAPTEMP,PSAPUNDO  
REsult:
BR0903I Number of tables in locally managed tablespaces: 47323         
BR0904I Number of indexes in locally managed tablespaces: 57328        
BR0901I Number of tables to check (and adapt if needed) next extent: 0 
BR0902I Number of indexes to check (and adapt if needed) next extent: 0
BR0905W No tables/indexes found to check and adapt next extent         
If I try on CMD  BRCONNECT -f NEXT I get the error
ORA-01017: Invalid user/password; logon denied.
How Can I extend the tablespaces? I need to finish my client copy.
Thanks a lot.
Message was edited by: Leonardo De Araujo

Hi Leonardo,
It's a while since I've worked on an Oracle based SAP system but this is what I remember.
Do you know exactly which tablespace(s) are filling during the client copy ? You can probably see them on the SAP system log. I guess it will be one of BTABD/I, STABD/I, POOLD/I or CLUD/I.
Once you've identified the tablespace(s) that have filled, you can add datafiles to the affected tablespace(s) using sapdba.
The following SAP Help Portal URL may also be of use:
http://help.sap.com/saphelp_47x200/helpdata/en/42/51b3144a1211d182b80000e829fbfe/frameset.htm
Regards,
Gary

Similar Messages

  • Free Oracle Tool to Simplify Commonly Run Dictionary Queries

    (orastat has a very good 'Hot Blocks' query)
    Hi,
    My co-workers and I at Agilent Technologies have developed a
    useful tool to simplify running common dictionary queries. It
    runs on UX and requires that you be the "oracle" user. You can
    download it from
    http://dbamon.com/orastat
    For example, if you wanted info about a certain table, you could
    query DBA_TABLE, DBA_INDEXES. With our tool "orastat", you would
    just run 'orastat -ti <OWNER>.<TABLE>. Example:
    2002/01/13-09:09:17 orastat | oraver=8.1.6 oraver3=8.1 sqlcmd=sv
    2002/01/13-09:09:17 orastat | ORACLE_SID=DBA ORACLE_HOME=/opt/oracle/product/8.1.6
    2002/01/13-09:09:17 orastat | Version=2.23 Host=bigdog Company=agilent
    2002/01/13-09:09:17 orastat | Table Info for DBAMON.EVENTS
    Table Data (from dba_tables)
    Tablespace: DBAMON
    RowCount: (Null) (From ANALYZE)
    LastAnalyzed: (Null) (From ANALYZE)
    Blocks: (Null) (From ANALYZE)
    InitialExtents: 20971520
    NextExtents: 8146944
    MinExtents: 1
    MaxExtents: 2147483645
    PercentIncr: 1
    BufferPool: DEFAULT
    Index Data (from dba_indexes and dba_ind_columns)
    Index: DBAMON.EVENTS_X1
    Tablespace: DBAMON
    LastAnalyzed: (Null) (From ANALYZE)
    LeafBlocks: (Null) (From ANALYZE)
    InitialExtents: 10485760
    NextExtents: 2764800
    MinExtents: 1
    MaxExtents: 2147483645
    PercentIncr: 1
    BufferPool: DEFAULT
    Index Column - Number: 1 Name: INSTANCE Length: 32 Descending: ASC
    Index: DBAMON.EVENTS_X2
    Tablespace: USERS
    LastAnalyzed: (Null) (From ANALYZE)
    LeafBlocks: (Null) (From ANALYZE)
    InitialExtents: 131072
    NextExtents: 983040
    MinExtents: 2
    MaxExtents: 2147483645
    PercentIncr: 1
    BufferPool: DEFAULT
    Index Column - Number: 1 Name: TS Length: 7 Descending: ASC
    Here is a list of all available orastat commands:
    2002/01/13-09:07:48 orastat | oraver=8.1.6 oraver3=8.1 sqlcmd=sv
    2002/01/13-09:07:48 orastat | ORACLE_SID=DBA ORACLE_HOME=/opt/oracle/product/8.1.6
    2002/01/13-09:07:48 orastat | Version=2.23 Host=bigdog Company=agilent
    orastat | Usage:
    -- View This Help File
    - Check for PMON Running, Show Oracle Version, Instance Status
    -ad List Archive Destinations (v)
    -al Show All Archived Logs
    -an Analyze Table COMPUTE STATISTICS - 'orastat -an TABLE-OWNER.TABLE-NAME'
    -ar Show Current DB Activity Rate
    -au Show DB Audit Status
    -az Show Current DB Activity Rate - Log to /opt/oracle/adm/cronlog/db_activity_rate_<SID>.txt
    -ba List Contents of dbamon.backup_age Table
    -bi List RMAN backup inventory -- ALL
    -bp List running RMAN backup sessions (if any)
    -br Backups: List all media written to since the last RMAN LVL0 backup
    -c Configuration: View init.ora File
    -ce Configuration: Edit 'vi' init.ora File
    -cf List Control Files
    -ck List Time of Last Checkpoint (from v$datafile_headers)
    -cp Configuration: View Contents of v$parameter
    -ct Coalesce TEMP tablespace
    -de List All Datafiles, Online Redo Logs and Control Files (For Destroying a DB)
    -df List Datafiles - Optional NOFSCHECK 2nd parm to prevent bdf'ing filesystem
    -dc List Datafiles in 'cp' commands to copy all datafiles elsewhere
    -ec Configuration: Edit 'vi' config.ora File
    -er Display contents of DBA_ERRORS
    -ex Select from plan_table
    -fs Free Space in Each Datafile
    -in List Indexes
    -iv List INVALID Objects
    -l List Archive Log Status
    -lf List Redo Log Files
    -li List Resource Limits (v$resource_limit)
    -lk Locks - Current TX (Non-Row) Locks
    -lh Lock Holders/Waiter
    -lo List Current Table Locks
    -ls Listener Status
    -lv List LVOL's / Usage
    -m View Last 20 Lines Of Alert Log
    -ma Cat entire Alert Log
    -mv 'vi' (read-only mode) Of Alert Log
    -op OPS: View V$PING - Lock Conversions
    -pi Performance: View Histogram of Datafile I/O
    -pd Performance: View Data Block Buffer Hit Ratio
    -pf Performance: View Total Cumulative Free List Waits
    -ph Performance: Hot Blocks - Block With Latch Sleeps
    -ps OPS (Parallel Server) Status
    -pw Performance: Show segment names for tables with buffer waits
    -ra List Rollback Segment Activity
    -rb List Rollback Segments
    -rc List And SHRINK All Rollback Segments
    -rd List And ALTER MAXEXTENTS UNLIMITED All Rollback Segments
    -ro List Roles
    -rh List REDO Logs - History
    -rl List REDO Logs - Files
    -rp RMAN Long Operation Progress
    -rs List REDO Logs - Status
    -sb Standby DB - Show log gaps
    -sc Sessions - By Session CPU Time
    -sd Sessions - Details - Sessions, Running SQL and Waits
    -se Sessions
    -sg List SGA Usage
    -sl SELECT * from table - name supplied as 2nd parameter
    -sn SNAPSHOT - Run systemstate trace 3 times (for Oracle diagnostics)
    -so List sorts by user
    -sp List StatsPack Snapshot Data
    -sq Run SQL - Pass SQL as argument in single quotes
    -sr View Running SQL - 'orastat -sr SESSION_NUMBER'
    -ss List default storage clause for all TABLESPACES
    -st System Statistics
    -su List Active Sessions - From Users Table (Under Construction)
    -sw Session Wait Statistics
    -ta List All Tables - From DBA_SEGMENTS (Name, TS, Size, Extents, Maxextents)
    -tb Count Tables - By Schema
    -tc Create Backup Schedule Template from List Of Tablespaces
    -td describe table - name of table supplied as 2nd parameter
    -ti Table Info - 'orastat -ti TABLE-OWNER.TABLE-NAME'
    -ts List Tablespaces
    -tt List 8i+ TEMPORARY Locally Managed Tablespaces
    -tu Temp space usage by user
    -tz List Tables - From DBA_TABLES
    -ub List the byte count of data, by User
    -ud List Users With ORADBA
    -ug List Users Table Grants (Much Output) - 2nd Parm is optional grantee name
    -us List All Users
    -ut List the byte count of data, by User and Tablespace
    -v List Oracle version and whether it is 32-bit or 64-bit
    -vs List All Views
    -vw Count Views - By Schema
    -ws Wait stats - from v
    2002/01/13-09:09:18 orastat | Found 2 Indexes
    2002/01/13-09:10:45 orastat | oraver=8.1.6 oraver3=8.1 sqlcmd=sv
    2002/01/13-09:10:45 orastat | ORACLE_SID=DBA ORACLE_HOME=/opt/oracle/product/8.1.6
    2002/01/13-09:10:45 orastat | Version=2.23 Host=bigdog Company=agilent
    orastat | Rollback Segments Statistics
    RSSize : Current rollback segment size in bytes
    A Xn's : Number of current transactions using the rollback segment
    HWMSize : High Water Mark size in bytes
    Wraps : Cumulative # of times a X'n continues writing from one
    extents to another existing extent
    Avg Actv: Avg # of bytes in active extents in the rbs measured over time
    Name Extents Extends RSSize A Xn's Gets HWMSize Wraps Avg Actv Status Waits
    SYSTEM 2 0 118784 0 2093 118784 0 0 ONLINE 0
    R01 19 0 2719744 1 261027 2719744 505 143362 ONLINE 122
    R02 20 0 2863104 1 263385 2863104 517 144526 ONLINE 164
    R03 19 0 2719744 1 264369 2719744 517 143207 ONLINE 155
    R04 19 0 2719744 0 267518 2719744 530 156265 ONLINE 139

    If the application uses a single database session, you can also generate a SQLTrace file to analyse with tkprof by using either Oracle Enterprise Manager to turn on SQL Trace for the session, or use DBMS_MONITOR SESSION_TRACE_ENABLE(session_id, serial_num) - you then have to find the trace file on the datbaas eserver USER_DUMP_DEST and either read manually (the queries are easily visible) or use tkprof to analyze it Using Application Tracing Tools  Among other things tkprof can tell you the top resource consuming SQL statements.

  • Tablespace Reorganisation in Oracle 10g Database

    Dear All,
    I'm planning of doing a carrying out a Tablespace Reorganisation of the schema tablespace on the production server. I need your views regarding the process to be taken and tuning that is required before carrying out such an activity. For your information, the size of the tablespace is around 3TB. Also, since it is the production server, we can't have an outage for more than 24hrs. Hence, I would like some help from all of you in order to carry out this activity successfully in the time frame.
    Regarding the process :
    I have some ideas about how to do the tablespace reorganisation in oracle 10g. But, if I carry out the activity my way, its going it to take atleast 3-4 days to complete (which won't be acceptable).
    Areas of concern :
    1) Steps to perform the tablespace reorganisation in Oracle 10g DB.
    2) Size of the temporary tablespace before starting the Reorg.
    3) Any further suggestions / recomendations regarding tuning up of Oracle Parameters for enhancement of speed and acuracy of the activity.
    System Specifications :
    SAP - BI 7.0 (SAP NetWeaver 2004s)
    DB - Oracle 10.2.0.2.0, DBSL Patch Level - 158
    OS - AIX 5.3
    Looking forward to some good and prompt suggestions from all of you !!
    Please provide your valuable inputs.
    NOTE :: We have successfully performed the reorganization in the rest of the landscape on the same schema tablespace without any issues.
    Thanks and Regards,
    Deoraj Alok.

    It is quite an old thread, but let me put in my view points, which could help others.
    1. The Size of PSAPTEMP and PSAPUNDO tablespace should be 1.5*largest Table Size.
    2. Another Important thing is , if the time is in an issue, what you can do is to reorg. only top 50 largest tables where maximum space is being wasted. Folowing is the query to determine the TOP 50 tables which has the highest WASTED size.
    SELECT * FROM
    (SELECT
    SUBSTR(TABLE_NAME, 1, 21) TABLE_NAME,
    NUM_ROWS,
    AVG_ROW_LEN ROWLEN,
    BLOCKS,
    +ROUND((AVG_ROW_LEN + 1) * NUM_ROWS / 1000000, 0) NET_MB,+
    +ROUND(BLOCKS * (8000 - 23 * INI_TRANS) *+
    (1 - PCT_FREE / 100) / 1000000, 0) GROSS_MB,
    ROUND((BLOCKS * (8000 - 23 * INI_TRANS) * (1 - PCT_FREE / 100) -
    +(AVG_ROW_LEN + 1) * NUM_ROWS) / 1000000) "WASTED_MB",+
    Tablespace_Name
    FROM DBA_TABLES
    WHERE
    NUM_ROWS IS NOT NULL AND
    OWNER LIKE 'SAP%' AND
    PARTITIONED = 'NO' AND
    (IOT_TYPE != 'IOT' OR IOT_TYPE IS NULL)
    ORDER BY 7 DESC)
    WHERE ROWNUM <=50;
    I am sure that, only these 50 tables will reduce the maximum space and you can ignore rest of the tables.
    3. Even you can find out all the Tables which are having LONG and LONG RAW fields by using this query
    Select Distinct TABLE_NAME From dba_tab_cols Where Owner='SAPYSP' and (DATA_TYPE='LONG' OR DATA_TYPE='LONG RAW');
    Now, from the results of this query you can see how many Tables are present in the Top 50 Tables. There will be a few only and you can export/import these few tables in offline mode.
    4. After reorg, fi you want to claim the free disk space also, it would not be that easy because of the high water mark present in datafiles but you can try with
    Alter datafile <datafile id> resize <Size>M
    5. If free disk space is the first priority the you need to create another Table space (which should have size as big as it can have all the tables) and you re-organize in this new tablespace. After Reorg, drop the old tablespace and rename the new Table space with the old one (Rename Tablespace Command will work only in Oracle 10g).
    I hope this information helps all those who are going to do reorg in their respective projects. However, You can further put your question if in doubt and I will try to answer them.

  • Free oracle DB downloadDeveloper and i am in need of a free oracle database

    I have installed Sql Developer, and i am in need of a free oracle database. where i could download free database from.

    Hi,
    Good to hear you are making progress. Try either Oracle 11g XE (or Oracle 10g XE if you older technology with a smaller footprint is better for you):
    http://www.oracle.com/technetwork/database/express-edition/downloads/index.html
    Regards,
    Gary
    SQL Developer Team

  • New free Oracle XE database has a PHP manual

    I wanted to point out that the newly announced free Oracle XE Beta version of the
    Oracle database has a PHP manual. See
    http://www.oracle.com/technology/products/database/xe/index.html
    The direct link to the manual is:
    http://www.oracle.com/pls/xe102/to_toc?pathname=dev.102%2Fb25317%2Ftoc.htm&remark=portal+%28Getting+Started%29
    The manual is a step by step introduction to building a simple application (it constructs
    pretty much the same application the Java and .Net manuals for XE do), so don't
    expect any deep revelations about PHP
    Post any PHP on XE feedback here or on the XE forum:
    http://www.oracle.com/technology/products/database/xe/forum.html
    -- CJ

    FWIW, I just came across this post from Harry Fuecks about XE and PHP:
    http://www.sitepoint.com/blogs/2005/11/01/oracle-10g-xe-and-php/
    Chris

  • Free Oracle 9i CD

    How can get a free Oracle 9i Database CD ?

    Does the free sample CD for 9i application server includes the 9i database installation? I am looking for free installation CD on the 9i database for Linux. I am having problems installing from the 3 downloaded files. The installer is complaining about not finding the client shared library (libclntsh.*).

  • Transportable tablespace accross different oracle versions

    Hi
    Do I need same oracle versions if I want to transport tablespaces ?
    i.e Can I transport tablespaces from oracle9i to oracle 11g ? or from oracle 10g to oracle 11g ?
    I read the documents however Im still confused.

    Thanks, I have read the document and notice that from oracle 10g and onwards I can transport tablespaces accross different oracle versions.
    I think we can change the endian format via rman hence no need to have same endian format
    "Beginning with the Oracle10g database, a tablespace can always be transported to a database with the same or higher compatibility setting, whether the target database is on the same or a different platform."

  • Free Oracle E-Business full installation version available in net?

    Hi all,
    Free Oracle E-Business full installation version available in net?
    If any know the URL,pls let me know the same.
    Thanks and Regards
    Ram S

    Solution Beacon is providing 11i Vision instance for public access ...
    http://vis11510ext5.solutionbeacon.net/OA_HTML/AppsLocalLogin.jsp

  • URL for Free Oracle Linux DVD ?

    hi,
    can you provide me the URL where i can request for Free Oracle Linux DVD ? i am new to oracle /unix
    thanks in advance

    Hi,
    See http://www.oracle.com/webapps/dialogue/dlgpage.jsp?p_ext=Y&p_dlg_id=5659298&src=5634329&Act=44 for form to request free Oracle Unbreakable Linux DVD.
    Regards,
    ...

  • Tablespace usage in Oracle 11g

    Hi Guys,
    Not sure if this has been asked before.
    I have created a couple of table spaces in my database and one of these tables is holding all my data. For that table space, I have added at least 8 data files so far and it seems that Oracle uses the free space very quickly. I would like to know following things
    1. Is there anyway to know that usage of data files with respect to table stored in it? In other words - would I be able to know if Table-A stored in datafile 1?
    2. Is there anyway to reuse the old data files?
    3. I am not sure if it is an Oracle instance, but it seems to be that Oracle 11g uses the free space very quickly (I can understand that it depends on the data) so just curious to know if there is anyway to minimize the usage.
    Any information on this would be useful and appreciated.
    Thanks
    Regards
    Jiggy

    Is there anyway to know that usage of data files with respect to table stored in it? In other words - would I be able to know if Table-A stored in datafile 1? The tables are actually stored in the tablespaces itself , spanned to multiple datafiles. Query dba_segments and dba_extents to find out that in which tablespace and datafile(s) , your tables are spread across.
    Is there anyway to reuse the old data files?In what way? If it is a Locally Managed Tablespace, Oracle would reuse the space becoming free automatically within the tablespace for the subsequent data.
    I am not sure if it is an Oracle instance, but it seems to be that Oracle 11g uses the free space very quickly (I can understand that it depends on the data) so just curious to know if there is anyway to minimize the usage. No such thing at least in my knowledge. Space being used would solely depend on the incoming data and not on the release of the db.
    Aman....

  • Doubt in considering temp tablespace's free space

    Hi All,
    Database: oracle 11.2
    Operating System: AIX
    I want to know how much free space available in my temp tablespace
    I ran below scripts
    select sum((bytes_free)/1024/1024/1024) GB from v$temp_space_header
    +52.904296875+
    select (tablespace_size)/1024/1024/1024 tablespace_size_in_gb,
    +(allocated_space)/1024/1024/1024 allocated_space_in_gb,+
    +(free_space)/1024/1024/1024 free_space_in_gb+
    from dba_temp_free_space
    tablespace_size_in_gb: 98.9990234375
    allocated_space_in_gb: 46.0947265625
    free_space_in_gb:151.81640625
    So my doubt is which one from above two script gives actual free space information ?
    Also in dba_temp_free_space view why free space size > tablespace size ?

    v$temp_space_header shows you how big the temp tablespace has got since the database was restarted. It doesn't give you the current free/used space.
    See the link for dba_temp_free_space, but I think it may be the way it reports free space which is why you're seeing it as more than the actual tablespace. As you can see form the description "space that is currently allocated and available for resuse" is calculated for both allocated space and free space.
    http://docs.oracle.com/cd/B28359_01/server.111/b28320/statviews_5056.htm
    >
    ALLOCATED_SPACE = space that is currently allocated and used + space that is currently allocated and available for reuse
    FREE_SPACE = space that is currently allocated and available for reuse + space that is currently unallocated>
    I use the below script which I've plagiarised from somewhere ages ago to get the used/free temp space.
    SELECT   A.tablespace_name tablespace, D.mb_total,
             SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_used,
             D.mb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_free
    FROM     v$sort_segment A,
             SELECT   B.name, C.block_size, SUM (C.bytes) / 1024 / 1024 mb_total
             FROM     v$tablespace B, v$tempfile C
             WHERE    B.ts#= C.ts#
             GROUP BY B.name, C.block_size
             ) D
    WHERE    A.tablespace_name = D.name
    GROUP by A.tablespace_name, D.mb_total;

  • Tablespace file in Oracle 10.2.0.4.0  twice as large as in 9.2.0.7

    The tablespace file of an database schema in oracle 10 is twice the size of the same database schema in oracle 9( 16.4 GB versus 8.11GB )
    At first I thought it was due to the charachtersets used, but these are in both the versions the same,
    in oracle 9 :
    NLS_CHARACTERSET     WE8ISO8859P9
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_LENGTH_SEMANTICS     BYTE
    in oracle 10
    NLS_CHARACTERSET     WE8ISO8859P9
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_LENGTH_SEMANTICS     BYTE
    Any ideas are welcome
    Thanks
    Toon

    from oracle 9
    DBA tablespaces:
    "TABLESPACE_NAME"     "BLOCK_SIZE"     "INITIAL_EXTENT"     "NEXT_EXTENT"     "MIN_EXTENTS"     "MAX_EXTENTS"     "PCT_INCREASE"     "MIN_EXTLEN"     "STATUS"     "CONTENTS"     "LOGGING"     "FORCE_LOGGING"     "EXTENT_MANAGEMENT"     "ALLOCATION_TYPE"     "PLUGGED_IN"     "SEGMENT_SPACE_MANAGEMENT"     "DEF_TAB_COMPRESSION"
    "IP504PROD_2_USR"     "8192"     "16384"     "16384"     "1"     "2147483645"     "0"     "16384"     "ONLINE"     "PERMANENT"     "LOGGING"     "NO"     "LOCAL"     "UNIFORM"     "NO"     "MANUAL"     "DISABLED"
    DBA_DATA_FILES:
    "FILE_NAME"     "FILE_ID"     "TABLESPACE_NAME"     "BYTES"     "BLOCKS"     "STATUS"     "RELATIVE_FNO"     "AUTOEXTENSIBLE"     "MAXBYTES"     "MAXBLOCKS"     "INCREMENT_BY"     "USER_BYTES"     "USER_BLOCKS"
    "H:\DATABASES\PROD\IP504PROD_2_USR.DBF"     "13"     "IP504PROD_2_USR"     "8902410240"     "1086720"     "AVAILABLE"     "13"     "YES"     "20971520000"     "2560000"     "1280"     "8902311936"     "1086708"
    oracle 10:
    DBA_TABLESPACES
    "TABLESPACE_NAME"     "BLOCK_SIZE"     "INITIAL_EXTENT"     "NEXT_EXTENT"     "MIN_EXTENTS"     "MAX_EXTENTS"     "PCT_INCREASE"     "MIN_EXTLEN"     "STATUS"     "CONTENTS"     "LOGGING"     "FORCE_LOGGING"     "EXTENT_MANAGEMENT"     "ALLOCATION_TYPE"     "PLUGGED_IN"     "SEGMENT_SPACE_MANAGEMENT"     "DEF_TAB_COMPRESSION"     "RETENTION"     "BIGFILE"
    "IP504PROD_2_USR"     "8192"     "10240000"     "10240000"     "1"     "2147483645"     "0"     "10240000"     "ONLINE"     "PERMANENT"     "LOGGING"     "NO"     "LOCAL"     "UNIFORM"     "NO"     "AUTO"     "DISABLED"     "NOT APPLY"     "NO"
    DBA_DATA_FILES
    "FILE_NAME"     "FILE_ID"     "TABLESPACE_NAME"     "BYTES"     "BLOCKS"     "STATUS"     "RELATIVE_FNO"     "AUTOEXTENSIBLE"     "MAXBYTES"     "MAXBLOCKS"     "INCREMENT_BY"     "USER_BYTES"     "USER_BLOCKS"     "ONLINE_STATUS"
    "/u02/oradata/prod/ip504prod_2_USR.DBF"     "5"     "IP504PROD_2_USR"     "17711104000"     "2162000"     "AVAILABLE"     "5"     "YES"     "20971520000"     "2560000"     "1280"     "17704960000"     "2161250"     "ONLINE"
    I hope this is sufficient?
    thnxs
    Toon
    Edited by: user4446345 on 23-mrt-2010 15:59

  • Fetch tablespace data from Oracle database(HP UNIX server) to excel Sheet

    Hi team,
    I have 5 oracle databases and they all are on different machines. i want to fetch data(tablespace data) from db to excel.
    here is my macro code
    Sub tbs_STD()
    Dim Conn As New ADODB.Connection
    Dim RS As New ADODB.Recordset
    Dim Cmd As New ADODB.Command
    Dim sqlText As String
    Dim Row As Long
    Dim Findex As Long
    Dim STD As Worksheet
    Dim X As Long
    Dim UID As String
    Dim PWD As String
    Dim Server As String
    UID = "monitordb"
    PWD = "monitor1"
    Server = "STD"
    Set STD = ActiveSheet
    STD.Select
    Conn.Open "PROVIDER=MSDAORA.Oracle;DATA SOURCE=" & Server & ";" & _
    "USER ID=" & UID & ";PASSWORD=" & PWD
    Cmd.ActiveConnection = Conn
    Cmd.CommandType = adCmdText
    sqlText = "select sum(a.tots/1048576) Tot_Size,sum(a.sumb/1048576) Tot_Free,round(sum(a.tots-a.sumb)*100/sum(a.tots),2) Pct_used,sum(a.largest/1024) Max_Free,sum(a.chunks) Chunks_Free from(select tablespace_name,0 tots,sum(bytes) sumb,max(bytes) largest,count(*) chunks from dba_free_space a group by tablespace_name union select tablespace_name,sum(bytes) tots,0,0,0 from dba_data_files group by tablespace_name) a group by a.tablespace_name order by a.tablespace_name"
    Cmd.CommandText = sqlText
    Set RS = Cmd.Execute
    For X = 0 To 4 ' Number of columns returning minus 1
    'Data.Cells(1, X + 1) = RS.Fields(X).Name
    Next
    Do While Not RS.EOF
    Row = Row + 1
    For Findex = 0 To RS.Fields.Count - 1
    STD.Cells(Row + 2, Findex + 67) = RS.Fields(Findex).Value
    Next Findex
    RS.MoveNext
    Loop
    End Sub
    I am able to connect through sqlplus on all machines but when i run the above code it gives me TNS error..
    ORA-12154- TNS could not resolve the connect identifier specified..
    Each database use same port 1527 and only one of them is able to fetch the data. and if i remove that database from client then the other one starts connecting. I think problem is due to same port number.
    Entries in the listener.ora file was made throough oracle client only 32bit.
    and i have installed both 10g and 11g client on my local machine.
    Please help.

    You need to configure tnsnames.ora in your OracleClient\network\admin folder with the TNS entries for the servers you're connecting to.

  • Free Oracle db client

    Hi fellow users,
    What client (like toad) do you use with your oracle db (free express edition, if it matters)?
    I am currently using toad, but it is only on a 30-day trial.
    I will greatly appreciate your ideas.

    There is a free version of toad, that needs to be updated every 30/90 days. However the codebase for it is a few versions back from their production version.. Might as well d/l the latest Sql Developer.. Its free and a lot less headaches involved with it..
    Thank you,
    Tony Miller
    Webster, TX
    I am a Ranger! We walk in the dark places no others will enter! We stand on the bridge and no one may pass! We live for the One, we die for the One!
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Need free Oracle Applications 11i technical Tutorials

    Hi All,
    I've been learning Oracle Application (technical) and need some pointers from you regarding Technical Tutorials.
    I've gone through some of the basic tutorials of Oracle Applications and now looking for websites/resources for techical tutorials which can be practiced on Oracle 11i Demo( vision) instance.
    Please let me know the resources/pdfs/links where these concepts are explained in a sequential manner as I'm already confused with what to read and what not to read after surfing the net. At the same time, some of the tutorials I found on internet are for Functional training and this created further confusion as I couldn't distinguish between functional & Technical material.
    It is not my intend to get hold of every thing, but want to have a fair understanding of Apps & an opportunity to explore/learn other things when I work on projects. So, looking for a course material of 30 - 80 hrs. duration. ( Am I too selective? :) )
    Last but not least, I don't have Metalink account and hence need resouces which are free of cost.
    Request you all to help me and find me the right resources!
    Many Thanks,
    MK

    Hi,
    Please see old threads for similar discussion (I assume you are referring to Oracle Apps Database Administration when you say Oracle Apps Technical).
    How to become Apps DBA
    http://forums.oracle.com/forums/search.jspa?threadID=&q=How+to+become+Apps+DBA&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Also, see the 11i/R12 documentation (you need to cover the manuals in the sections mentioned below)
    Applications Releases 11i and 12 -- Applications Technology (Lifecycle Management + System Administration + Architecture and Common Applications + Integration)
    http://www.oracle.com/technetwork/documentation/applications-167706.html
    Google should be your friend, search for Oracle Apps DBA blogs and tutorials and you should find many links that would be helpful.
    Oracle Apps DBA Tutorial
    http://tinyurl.com/24j3jb9
    Oracle Apps DBA Blogs
    http://tinyurl.com/2987na8
    Thanks,
    Hussein

Maybe you are looking for