Size LOB in Oracle

Hello

How to find the size of a table containing a LOB in oracle 9i.

Thank you
Mariangela

For each TRADE is created is a LOB segment created and also a type LOB index created: you also have to add this to your query.
Check with

select index_name from user_indexes where index_type='LOB';

Tags: Database

Similar Questions

  • PHP and OCI - Lob: read oracle clob

    I'm having a weird problem with PHP and the method of the OIC - Lob: read.

    We have a page that connects to the database and all other fields in fate without any problem. However, when it comes to the CLOB, only a small part of the actual data is retrieved.

    The code uses:

    $content= $features[14]->read(2000); echo $content;

    And we get a small section of returned field (only about 185 on a total of 553 tanks). The really strange thing is that no matter what the length specified is - it returns, although a small section - and the cut seems to in fact be 549 bytes/tanks - anything below the read (length) specified as 549 shortens the string returned (although what is returned is much less the 549 tanks) but something more than 549 makes no difference.

    In addition, we used the method of NOZZLE - Lob: load with exactly the same results where only part of the actual value of the clob field is returned.

    Any ideas of what could be the cause?

    Version of PHP is 5.1.6

    RDBMS is 11.2.0.4.2

    OIC config via the phpinfo() function shows

    OCI8

    Oci8 support

    activated

    Review

    $Revision: $1.269.2.18

    Active persistent connections

    1

    Active connections

    1

    Oracle Instant Client Version

    1. 10.2

    Temporary Lob support

    activated

    Support for collections

    activated

    Directive

    Local value

    Master value

    OCI8.default_prefetch

    10

    10

    OCI8.max_persistent

    -1

    -1

    OCI8.old_oci_close_semantics

    0

    0

    OCI8.persistent_timeout

    60

    60

    OCI8.ping_interval

    60

    60

    OCI8.privileged_connect

    Off

    Off

    OCI8.statement_cache_size

    20

    20

    It turns out that there was a problem with the tns alias.  To test, the connection string has been hard-coded and the clob data was then returned correctly without truncation.  Using the alias tns in the connection descriptor appears to have been the root of the problem, so there was a little in tnsnames.ora syntax error although I'll be damned if I can understand why it was partially recovering the clob.

  • OS and Oracle block size block size

    [Condition] If the size of the block of BONE [512 b - 64K] is greater than the size of block Oracle [2K - 16K]

    Assume: BONES Block Size: 32K and Oracle block size: 8K

    Quebec: One-to-many relationship will always be true? or block Oracle will use 8K to 32 K, and the rest will be unused? or it will return the error at the time of the creation of the data file?

    This will challenge the relationship "one to many".

    Leader: Oracle logical and physical storage diagram.svg - Wikimedia Commons

    Refer to the basis of the diagram.

    " --------------------< "="" show's="" one="" to="" many="" relation.="" one="" x="" can="" contain="" many="">

    ">-------------------<" show's="" many="" to="" many"="" i.e="" many="" x="" can="" contain="" many="">

    You don't seem to be read or understand what everyone says.

    There is NO such "one to many" relationship. Like I said above

    There is no 'validation of one to many '.

    1. the operating system uses a given block size

    2. you choose an Oracle block size

    All these "one to many" is just the result of the choices you made in #2 above. There isn't any 'validation' that occur.

    This likely diagram shows this relationship based on the recommendation of Oracle to select a block size that is a multiple of the block size of OS. If you do that this diagram will NOT reflect the case of NORMAL use.

    You can't believe everything you see on the internet. Articles/diagrams and others are often from unknown or reliable sources.

    2.

    'Validation' is not any process.

    I just wanted to write the Validation of the theory, the relationship.

    Re-read what I just said again above.

    There is NO validation. There is NO theory of validation.

    All there is is the reality of the block size, you choose and the reality of the OS block size you use. Any relationship between these two values is just a reflection of these two values.

    If you choose two different values, they have a completely different relationship to each other.

    Oracle works with blocks of the Oracle. The operating system works with the BONE blocks. Oracle does not care really what size a block of BONE is in connection with an Oracle block.

  • Help understand about values retrieved by Tom Kyte script for my LOB segment

    I have the LOB segment. When I use Tom Kyte show_space script

    ()https://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:14339684180676) have this output:

    Unformatted blocks...             107

    FS1 Blocks (0-25)...               0

    FS2 Blocks (25-50)...               0

    FS3 Blocks (50-75)...               0

    FS4 Blocks (75-100)...               0

    Complete blocks...         859 438

    Total blocks...       1 746 304

    Total number of bytes...  14,305,722,368

    Total MB...          13 643

    Unused blocks...               0

    Unused bytes...               0

    Used in last Ext FileId...               5

    Used in last Ext BlockId...       1 261 056

    Used in last block...             128

    I have only full blocks = 859 438, but Total of blocks = 1 746 304 why so?

    Looks like you chunk's size 16 k - Oracle seems to watch only the headers of piece in this code; so you expect the segment number raw blocks to be twice the space 'blocks', as this report if you are using a size of 8 KB block and a fragment of 16 k size.

    Concerning

    Jonathan Lewis

  • LOBs reg

    I am studying this support LOBs GB and even by the CT, I wonder that my HARD drive is 40GB if I install oracle and use a LOB for each table, will my entirely consumed space or reserved by oracle...

    kindly wait for answers, I'm a user of vessel.

    Kind regards
    Anthony

    According to the version of Oracle and database block size, a single LOB could store up to 128 TB to a data value. The actual amount of disk space, however, will be tied to the amount of data that you store actually in these columns. If you try to store 40 GB of data in the LOB columns, fill up your hard drive. If you store only 1 GB of data in the LOB columns, Oracle would only need 1 GB of disk space for data.

    Justin

  • Oracle Database vs. ofa data model

    Friends,

    I have three columns in a database table have dimensions of 2000 (varchar2)

    and existing EO and s VO based on this

    so obviously these columns of form OPS data model also 2000

    But as a change request, I need to reduce them to 1500, 1000, 1000

    I think that we cannot reduce the size in the oracle database.

    Please correct me if iam wrong.

    If this is possible please guide me

    Thank you

    Aravinda

    I said, I did the same thing,

    I think you did a sync "now, I synchrised with what I have added new columns only, now, in this respect its OK.'.»»

    It is not identical to the OT and VO again to create with the same name. If you have not done this, do.

    Also attach your research and the page controller update page. There could be something wrong in what you did.

    See you soon

    AJ

  • Displacement of the LOB segments.

    Is there a a way to move LOB segment, keeping the segment of the table? The statement:

    ALTER table < tab > move lob (< lob >) store as (tablespace < TBS >)

    moves not only the LOB segment, but also table segments, so consumes a lot of resources, needs to rebuild indexes etc.

    Thank you.

    If you move the lob segment, then the data of the line must change because the lob is in a different place. There is no way around that. The row stores a pointer to LOB. Oracle has decided to implement this in a way that makes all change of rowid (you can't influence that).

    So, as I said - it's life.

  • The Oracle ASMLib driver initialization: FAILURE

    Hello guys,.

    You need help. I don't understand this problem. Oracleasm don't load.

    Oracle version: 11.2.0.3

    Version of the Linux kernel: Linux xxx.com 2.6.18 - 371.4.1.el5 #1 SMP Wed Jan 8 18:42:00 GMT 2014 x86_64 x86_64 x86_64 GNU/Linux

    ] status /etc/init.d/oracleasm #.

    Check if the DSO is loaded: no

    Check if/dev/oracleasm is mounted: no

    ------------------------------------------------------------------------

    Configure /etc/init.d/oracleasm #.

    Configuring the Oracle ASM Library driver.

    This sets up the properties on the startup of the Oracle ASM library

    pilot.  The following questions will determine whether the driver is

    load on startup and it will have permissions.  The current values

    appears between square brackets ("[]").  Hitting < ENTER > without having to type a

    response will keep this current value.  CTRL-C will stop.

    User by default to the owner of the [oracle] driver interface: oracle

    Group defaults to the owner of the [asmdba] driver interface: asmdba

    Start Oracle ASM Library driver at startup (y/n) [y]: y

    Scan of Oracle ASM disks at startup (y/n) [y]: y

    Driver configuration Oracle ASM library of writing: fact

    The Oracle ASMLib driver initialization: [FAILURE]

    -----------------------------------------------------------------------------

    I downloaded the correct asm library packages.

    uname - a

    Linux hostname 2.6.18 - 371.4.1.el5 #1 SMP Wed Jan 8 18:42:00 GMT 2014 x86_64 x86_64 x86_64 GNU/Linux

    RPM - qa | grep oracleasm

    oracleasm - 2.6.18 - 371.4.1.el5 - 2.0.5 - 1.el5

    oracleasmlib - 2.0.4 - 1.el5

    oracleasm-support - 2.1.8 - 1.el5

    SELINUX is disabled.

    / var/log/oraleasm

    Could not load module 'oracleasm.

    Load the module "oracleasm": failed

    Could not load module 'oracleasm.

    Load the module "oracleasm": failed

    Could not load module 'oracleasm.

    Load the module "oracleasm": failed

    Could not load module 'oracleasm.

    Load the module "oracleasm": failed

    Could not load module 'oracleasm.

    Reload from disk partitions: fact

    Cleaning up stale ASM disks...

    ASM disks scanning system...

    oracleasm-read-label: could not open device ' / dev/dm-0 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-0 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-0 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-0 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-1 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-1 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-1 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-1 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-2 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-2 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-2 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-2 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-3 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-3 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-3 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-3 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-4 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-4 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-4 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-4 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-5 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-5 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-5 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-5 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-75 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-75 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-75 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-75 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-76 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-76 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-76 ': no such file or directory

    oracleasm-read-label: could not open device ' / dev/dm-76 ': no such file or directory

    Load the module "oracleasm": failed

    Could not load module 'oracleasm.

    Load the module "oracleasm": failed

    Could not load module 'oracleasm.

    Load the module "oracleasm": failed

    Could not load module 'oracleasm.

    Load the module "oracleasm": failed

    Could not load module 'oracleasm.

    Can someone help me understand what I missed.

    Kind regards

    Ashish

    Hey Vandana,

    Leave was correct, he had some problems with the packages that I downloaded earlier. I downloaded again and this way it is resolved. See below.

    The only difference is in the size of RPM. First of all, I downloaded below:

    Name: oracleasmlib relocations: (not transferable)

    Version: 2.0.4 vendor: Oracle Corporation

    Release date: 1.el5 Build Date: Wednesday, March 18, 2009 03:27:43 CEST

    Install Date: Thursday, February 13, 2014 06:52:06 AM IS      Host of generation: ca - build23.us.oracle.com

    Group: System environment/Kernel Source RPM: 2.0.4 - oracleasmlib - 1.el5.src.rpm

    Size: 21792 License: Oracle Corporation

    Signature: DSA/SHA1, Thursday, December 3, 2009 03:07:19 pm, Key ID 66ced3de1e5e0159

    Packager: Joel Becker [email protected]>

    URL: http://oss.oracle.com/

    Summary: The Oracle Automatic Storage Management userspace code library.

    Description:

    The library of user Oracle for Oracle Automatic Storage Management space

    Now, I installed this and problem solved.

    Name: oracleasmlib relocations: (not transferable)

    Version: 2.0.4 vendor: Oracle Corporation

    Release date: 1.el5 Build Date: Wednesday, March 18, 2009 03:25:42 CEST

    Install Date: Friday, February 14, 2014 08:13:05 CEST      Host of generation: ca - build24.us.oracle.com

    Group: System environment/Kernel Source RPM: 2.0.4 - oracleasmlib - 1.el5.src.rpm

    Size: 25672 License: Oracle Corporation

    Signature: DSA/SHA1, Thursday, December 3, 2009 03:07:19 pm, Key ID 66ced3de1e5e0159

    Packager: Joel Becker [email protected]>

    URL: http://oss.oracle.com/

    Summary: The Oracle Automatic Storage Management userspace code library.

    Description:

    The library of user Oracle for Oracle Automatic Storage Management space

    Looks like he had a problem with the download of packages because the size varies. in any case thanks a lot.

    Kind regards
    Ashish Francis

  • Re: recommended size for the E-Business Suite.

    Hello

    Is there a recommended for ASM in GR 11, 2 rack unit Allocation size?

    In Oracle 11 g grid 2, AU (Allocation unit) can now be specified as an attribute of ASM Diskgroup. Is there a recommended size for E-Business Suite for what UA value should be fixed?

    Kind regards.

    Salvation;

    In Oracle 11 g grid 2, AU (Allocation unit) can now be specified as an attribute of ASM Diskgroup. Is there a recommended size for E-Business Suite for what UA value should be fixed?

    As far as I KNOW no, but you can use the network installation guide and can use recomentation specified for the ASM Diskgroup to EBS attribute also

    Respect of
    HELIOS

  • Size of different BDB files even if they are now the same data?

    I built a database of BDB (Berkeley DB) with BTREE type. And it does not appear that data, but the sequence data to the database also affects the size of the resulting file of the BDB. Is this the case?
    A detailed below:
    I have a set of data stored in the db. If the elements of this set is put in the db in a random order, the file that results has size SIZE1. If these elements are set in a specific order (the same order as the underlying order BTREE) db, the file resulting a. size SIZE2 While the same set is used, it is NOT equal to SIZE2 SIZE1 (SIZE1 > SIZE2).

    I was wondering:
    (1) if it is planned?
    (2) if it is expected, will be the file in this case (data put ordered) most read effective?

    Thank you.
    Feng

    typo
    Published by: 793526 on September 8, 2010 02:02

    Hello

    In general, the percentage of a page that contains the application
    the data will be higher if the database entries are inserted in
    sorted order. The page fill factor may change the amount
    disk space required to hold any particular DataSet.

    You can find additional information on:

    "Disk space requirements.
    http://download.Oracle.com/docs/CD/E17076_01/HTML/programmer_reference/am_misc_diskspace.html

    "Selection of a cache size.
    http://download.Oracle.com/docs/CD/E17076_01/HTML/programmer_reference/general_am_conf.html#am_conf_cachesize

    Thank you
    Sandra

  • Leaks and security oracle

    Hi all

    Can anyone recommend a good starting point for the security of the Oracle and leaks, in general?

    I'm trying to get back to speed on Oracle and would appreciate suggestions.

    TIA.

    Jasper

    http://www.petefinnigan.com

    &

    A copy of the size of database Oracle 10g security by Design by David Knox.

  • Oracle process has many flaws of page on windows 2003 64-bit with 16 GB of RAM

    Hello

    We have recently installed a new Oracle RAC database on a customer site:

    2 - nodes x SP2 of Windows 2003 R2 Standard x 64
    Oracle 10.2.0.6.0 64-bit
    Each node has 16 GB of RAM
    SGA_TARGET = 1536M
    PGA_AGGREGATE_TARGET = 1628M


    Navigation via Enterprise Manager, there was a warning on "virtual memory an Excessive paging. So I opened the the Task Manager Windows on one of the nodes, and Yes, I see a considerable number of 'page fault' for the oracle.exe process. To give a slightly better idea, some relevant columns for this process I write values:
    Proc Name     Memory Use      Max Mem Use         Virtual Mem Size       Page Faults
    oracle.exe    2.690.692KB     2.959.324KB         3.053.889KB            2.914.171.009
    And this value for 'page fault' increases 1000-2000 about a second.

    There are several other processes running on the server, nothing appears out of the ordinary for me (for example the process of Enterprise Manager, AntiVirus, winlogon.exe). The sum of the memory of these processes are using / used is about 1 GB.

    Looking at the "performance" tab in the Task Manager, I see that:
    Total Physical Memory = 16Gb
    Available = 12Gb
    All of this makes sense to me:
    16Gb RAM
    4Gb used by all processes on the server
    12Gb available
    So why do we not see paging for oracle.exe? I guess I'm missing something on what exactly the column 'page errors' told me. Can someone explain what is happening?


    Kind regards
    ADOS

    See my replies in this thread: use of swap high - 11 g on windows 2003 x 64 file

    Of http://technet.microsoft.com/en-us/library/cc961101.aspx (monitoring and Tuning your server):
    "If a process request a page in memory and the system cannot find the requested location, this is a page fault. (If the page is elsewhere in memory fault is called a soft page fault.) If the page must be retrieved from disk, the fault is called a page fault.) The system also has a page on a file access error if the requested page is not found in the file system Cache and must be retrieved from storage. Counters page fault does not distinguish between hard and soft faults, so you must combine meter information to deduce the number of hard faults.
    To follow the pagination, log the following counters: memoire\ of Page/s, memoire\/s Cache faults defects and memoire\ reading of pages/sec. The first two of them follow the working sets and the file system Cache. Contributes to the counter of page reads you following hard page faults: a high rate of page faults associated with a high rate of page reads (as highlighted in the disk counters) indicates a high rate of hard faults. "

    See also:
    http://msdn.Microsoft.com/en-us/library/cc441804 (vs.85) .aspx (Working Set)
    http://TechNet.Microsoft.com/en-us/library/cc958290.aspx (evaluation of memory and Cache usage)

    In short, a fair session connect or disconnect from the instance of database will increase the number of page faults (soft).

    Charles Hooper
    IT Manager/Oracle DBA
    K & M-making Machine, Inc.

  • How to know the size of the files transferred to the SQL * Net?

    I'm testing the Advanced compress (AC) for 11 g Data Guard. When the AC is turned on, the archived log files are supposed to be compressed on the primary database server sent via SQL * Net, then unzipped on the standby db server. We will see that the file sizes are the same on the main servers and backup. I want to check that the AC works by monitoring how much data is sent via SQL * Net. By Oracle, AC uses less bandwidth of 35%. This means that the size of the transferred files must be at least 65% of the original size.


    Is there a way to know the size with the Oracle utilities? Otherwise, how do you know by the utilities of operating system? OS is Solaris 5.10.

    Thank you.

    I'm not sure that this can be done via SQL * Net, but a sniffer network between two servers packets must be able to help - you may want to contact your network team.

    HTH
    Srini

  • Watch EP DAC could not cite error driver Oracle...

    Hello

    We have installed the Oracle BI Applications 7.9.5 in a customer environment on Oracle E-Business Suite Release 12 and a load running with seeded CSV file definitions. We have taken charge of "Full R12", and it shows that all 520 tasks are successful. However, the European Parliament shows the State as down. Here's the message comes from the log file.

    ............... Retrieved from R12 full of file DAC\Log log file...
    959 SERIOUS my Sep 15 10:45:23 EDT 2008 pmcmd startworkflow u Administrator PEI * s - XXXXXX:4006 f SILOS - lpf D:\OracleBI\DAC\Informatica\parameters\SILOS. SIL_UpdateRowInRunTable.txt SIL_UpdateRowInRunTable
    Status / / Desc: succeeded
    WorkFlowMessage: Workflow executed successfully.
    Error message: successfully completed.
    Error code: 0
    960 GRAVE my Sep 15 10:45:23 EDT 2008 ETL seems to have ended. Citing stop dispatcher after the notification of the last task running.
    961 SEVERE MON Sep 15 10:45:23 EDT 2008 completion of ETL processes.
    962 SERIOUS my Sep 15 2008 completed 10:45:23 EDT Dispatcher thread.
    963 SEVERE MON Sep 15 10:45:23 EDT 2008
    FAULT INFO: Error Failed: general executing ETL oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe (Loracle/jdbc/pilot/OracleStatement; JIIIZZZZ [SANDRINE [IF [B [ICN [SII [B [ICN [I [S [BIIIIZZ [Loracle/jdbc/pilot/accessor; [[[B [J [BI [CI [SIZ) I]]]]]]]
    MESSAGE: Oracle. JDBC. Driver.T2CStatement.t2cParseExecuteDescribe (Loracle/jdbc/pilot/OracleStatement; JIIIZZZZ [SANDRINE [IF [B [ICN [SII [B [ICN [I [S [BIIIIZZ [Loracle/jdbc/pilot/accessor; [[[B [J [BI [CI [SIZ) I]]]]]]]
    EXCEPTION CLASS: java.lang.UnsatisfiedLinkError

    oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe (Native Method)
    oracle.jdbc.driver.T2CStatement.executeForDescribe(T2CStatement.java:725)
    oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1031)
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1124)
    oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1264)
    com.siebel.etl.database.DBUtils.executeQuery(DBUtils.java:148)
    com.siebel.etl.database.WeakDBUtils.executeQuery(WeakDBUtils.java:242)
    com.siebel.etl.engine.core.DateTimeHandler.getCurrentDBTimestamp(DateTimeHandler.java:190)
    com.siebel.etl.engine.core.DateTimeHandler.getDBTimestamp(DateTimeHandler.java:240)
    com.siebel.etl.engine.core.ETL.updateRefreshDates(ETL.java:1224)
    com.siebel.etl.engine.core.ETL.thisETLProcess(ETL.java:399)
    com.siebel.etl.engine.core.ETL.run(ETL.java:604)
    com.siebel.etl.engine.core.ETL.execute(ETL.java:840)
    com.siebel.etl.etlmanager.EtlExecutionManager$ 1.executeEtlProcess(EtlExecutionManager.java:211)
    com.siebel.etl.etlmanager.EtlExecutionManager$ 1.run(EtlExecutionManager.java:165)
    java.lang.Thread.run(Thread.java:619)
    964 SEVERE MON Sep 15 10:45:23 EDT 2008
    ************************************************************
    CLOSING THE CONNECTION POOL Data Warehouse
    ************************************************************
    965 SEVERE MON Sep 15 10:45:24 EDT 2008
    ************************************************************
    CLOSING OF THE CONNECTION POOL ORA_R12
    ************************************************************
    966 SEVERE MON Sep 15 10:45:25 EDT 2008
    --------------------------------------------
    END OF THE ETL
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    We have all the installer such as mentioned in the installation guide. We missing something here?

    Thank you
    Srini

    Try using Oracle (Thin) type of connection. These types of false errors are known to occur when using OCI8 thick aka type connections for the following reasons
    -The client machine where the DAC server has a different version of Oracle as the database server. For example Oracle 9 client libraries to talk to the Oracle 10 database or vice versa.
    -The client machine has several homes of oracle. You should not have this situation. If so, fix it.
    -The ojdbc14.jar is been copied from somewhere else and so the incompatibility with libraries of client on the local computer. Try and use the ojdbc14.jar is found on the machine running server DAC.

    Many of these problems have been solved by using a thin connection. Connection thin aka Type 4 drivers have the ability to talk to the database directly instead of via the client libraries using pure java.

    If all else fails copy the ojdbc14.jar is on the database server computer.

  • Calculate the material database

    Hi all

    I'm new Oracle DBA in the industry, not a lot of experience in the database. I have some confusion. Maybe it's stupid question but this turning point in my mind. Please help to solve these.

    (1) for new projects comes, I'm confusing all cache/RAM required and CPU. Although I can calculate the capacity of the hard drive.  for example - my Application user say we have total TPS (transactions per second) is 1000 (200 update, delete 300, 100 and 200 insertion selects), so in this case how can I calculate hardware capacity, and how I can answer for them.

    (2) this is the reverse of the first question.  Suppose a database running, and everything works fine. I want to calculate the GST (transactions per second). means how select/update/insert/delete running in the second. How to calculate or identified TPS.

    Thanks in advance...

    Reg,

    Hard

    Thank you all, I got my answer...

    Oracle Capacity Planning

    Introduction - Database management

    The best way to perform the Oracle capacity planning is with planningsof the worksheet of the ability of the Oracle. Database management has increased over the years to the simple management of a few tables and indexes to a complex of interlocking responsibilities ranging from management of objects of database to participate in decisions large enterprise on hardware, software and development tools.

    In order to fully discharge these functions the modern Oracle DBA needs one big together skills. In the last hours, we will discuss the skills needed, and specifically how they apply to an Oracle DBA.

    Capacity planning system

    In a green field operation (the one where you're here in front of the equipment and the database), a DBA will have a critical role to play in planning and configuration of the new system. Even in existing environments the ability to predict new servers, new databases, or improvements to existing databases and systems is crucial.

    Essentially the DBA should be concerned with two main questions:

    1. Get enough server to ensure an adequate return
    2. Sufficient backup and power of recovery for backup and restoration carried out respecting the time constraints required.

    All this is actually under the heading planning resources and capabilities. Resources and capacity planning Oracle is a database intensive resources system. The more CPU, memory and disk resources, you can provide Oracle, better it performs. Planning with Oracle resources becomes more a game of "How can we afford to buy" instead of "what is the minimum configuration. A minimally configured Oracle server won't work effectively. Specification of resource for Oracle In the specification of resources, there are several questions that should be answered.

    1. How many users will use the system today and in the future?
    2. Data will include the system contain both now and in the future, we don't know the growth rate?
    3. What response time are expected?
    4. The availability of this system is planned?

    Why are these issues important?

    1. How many users will use the system today and in the future?

    This issue is important, because it effects how much processing power is going to be necessary. The number of users will determine the number and speed of the processors, memory, the related network configuration size.

    1. Data will include the system contain both now and in the future, we don't know the growth rate?

    This issue is important because it determines the disk needs, how much storage will need to take the data we have today and how it will be necessary for the growth. The answer to this question also allows to determine how much memory will be needed.

    1. What response time are expected?

    This question is important because it pushes the number, type and speed of CPU resources, but also of network problems. He will lead also issues such as the number and speed disk configuration disks, number and speed of the controllers, disk partitioning decisions.

    1. The availability of this system is planned?

    This question is important because the availability of the system grows the type of RAID (1, 0, 0/1, RAID5) configuration, the type of scheduled backup (cold, warm) and parallel server problems. Requirements change if all that is expected is the system to be available during business hours from Monday to Friday, or if the system is supposed to be available 24 X 7 seven days a week. This also leads the type of backup media, be it a single tape drive is all that is necessary or is it a hi-speed, tape-stacker, multichannel, solution based silo?

    To properly perform a capacity planning cooperative efforts should be made between system administrators, database administrators, and network administrators.

    Step 1: Size of the Oracle database

    A starting point for the whole process of capacity planning is to know how many and what size, databases will be based on a given server resource. The physical size of the tables, indexes, clusters, and LOB storage areas will play an essential role in the sizing of the overall database, including areas of shared global memory and disk farm. DBAS and developers must work together in order to properly size the physical files of the database. The design of the database will also lead the placement and the number of storage spaces and other resources of database such as the size and quantity of newspapers of recovery, rollback segments and their associated buffers.

    Typically areas of buffer of data to an LMS database block size out to between 1/20 to 1/100 the physical sum relative to the total number of database file sizes. For example, if the physical size of the database is 20 gigabytes the database block buffers should on about 200 megabytes to 1 gigabyte in size depending on the how the data is used. In most cases the LMS shared pool would be size out to about 20-150 megabytes maximum according to the usage model for the common areas of SQL (see next lesson). For a system of 20 gigabytes the redo logs would most likely run between 20 and 80 megabytes, you want mirrored volumes and probably not less than 5 groups. The pad of paper to support a 50 megabyte redo log file would be a minimum of 5 megabytes may be as large as 10 megabytes. The last major factor for BMG would be the size of the sorting box, for this size of a database, a sort of 10 to 20 megabytes field is on the right (according to the number and size of all kinds). Remember that sort areas can be a part of the shared pool or a part of the large pool, so we'll cover in a future lesson.

    So on that basis we've determined? Gives a choice of 400 megabytes for our size memory buffer of data block, 70 megabytes for the shared pool, buffers of the newspaper of 4 to 10 MB (40 MB) and a size of 10 megabytes sort field. We look at a megabyte of 500-600 LMS with the important factors of non - DBA added in. Since you are not supposed to use more than 60% of the physical memory (according to the interviewee) it means w will need at least a gigabyte of RAM. With this size of database a single UC probably won? t give enough performance so we are probably looking at least a 4-processor machine. If we have more than one instance installed on the server, the memory requirements will increase.

    Step 2: Determine the number and Type of users:

    Of course, a database of a user will require fewer resources than the user database of a thousand. Generally, you will need to take a LOOT at how many memory resources and drive each user will need. An example would be to assume that a user installed 1,000 users base, only 10 percent of them at the same time will use the database. That leaves 100 concurrent users, those who perhaps a second 10 percent will do the activity requiring sorting areas, this brings the number up to 10 users each use (in our previous example) 10 megabytes of memory each (100 MB). In addition each of the 100 users simultaneous need about 200 k of space (depending on the activity, BONE, and other factors) process so there is an additional charge of 20 megabytes just for the user process space. Finally, each of these users will require probably some amount of disk resource (or less if they are client-server or web-based) let? s give them 5 meg of disk to start each, which adds up to 5 gigabytes of disk (give or take a meg or two.)

    Step 3: Determine the hardware requirements for the required response time meet and support of user Support:

    This step is the system administrator and maybe the seller of equipment. Given our mix of 1000:100:10 users and any required response time numbers, they should be able to configure a server that will obtain good results. Usually, this will require several, interfaces multi-lane disks and several separate physically the drive bays.

    Step 4: Determine the material backup to support the requirements of availability required:

    Here again the admin system and hardware vendor will have a helping hand in the decision. Based on the size of the disks and the speed of the maximum recovery time backup solution should be developed. If there is no way to meet your requirements of availability required using backup schemas simple more esoteric architectures can be specified as strips of multiple channels, hot databases in standby or even Oracle Parallel Server. Let? s say we need a requirement of availability 24 X 7 with instant failover (no recovery time because of the critical nature of the mission of the system). This type of specification would require Oracle Parallel Server in a configuration of automated failover. We also use either a double or triple mirror on disk so that we could divide the mirror to perform backups without losing the protection of mirroring.

    Let? s compile what we have determined so far:

    Material: 2-4 CPU (for higher-speed CPU we can) with at least 1 gigabyte (preferably 2) of RAM shared, at least 2 disk controllers each with many channels, 90 gigabytes of disk resource using a three way mirror to give us a matrix to mirror a triple 30 concert. The systems themselves should have a sufficient internal disk subsystem to support the operating system and the swap and the requirements of pagination. Systems must be able to share the disk resources so should support clustering. High-speed tape backup to minimize the folding times mirror.

    Software: Oracle Parallel Server, Cluster, the network management software, software backup management software to support backup material.

    Capacity and resource planning is not an exact science. Basically, look for a moving target. Dual Pentium II 200 NT Server with 10 GB of 2 GB SCSI disks for $5 k, I bought 2 years ago has a modern equivalent in the Pentium III 400 with the builtin 14 concert my father-in-law just bought for $1 k. At the time where we specify and purchase of a system, it is already replaced. You should insist on power substitute options more effective, more inexpensive they are available during the phases of specification and procurement.

    Reg,

    Hard...

Maybe you are looking for