Do we need rpm package oracleasmlib for using Oracle ASMLib?

..The Oracle ASMLib kernel driver is now included in the Unbreakable Enterprise Kernel.
No driver package needs to be installed when using this kernel.
The oracleasm-support and oracleasmlib packages still need to be installed from ULN+
http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
i use:
root@oel62 ~]# uname -r
2.6.32-300.3.1.el6uek.x86_64I understood:
-oracleasm: is include in the kernel(kernel/drivers/block/oracleasm/oracleasm.ko)
-oracleasm-support: can be found on the install ISO or in Oracle Public Yum Server.
-oracleasmlib: ? not found in Oracle Public Yum Server! can be found only in ULN?
Question: Do we need it, rpm package oracleasmlib for install Oracle ASMLib?
I have add kernel module oracleasm (via modprobe) and install rpm oracleasm-support
(but without oracleasmlib) and it works !!??
..and I'm confused ???

Dude wrote:
Saying that it works seems quite audacious to me. Well, I can start the engine, let's fly! I'd rather remain on the ground ;-)Hi Dude!
You do not mean I talk nonsense, right?
Maybe! But once again i will protocol here what i did.
It would be very nice if you take a look here:
Ok! Step by step..
My environment: Oracle Linux 6.2 in VMWare
Linux kernel:
[root@oel62 ~]# uname -r
2.6.32-300.3.1.el6uek.x86_64Install oracleasm:
[root@oel62 ~]# modprobe oracleasm
[root@oel62 ~]# modprobe -l oracleasm
kernel/drivers/block/oracleasm/oracleasm.ko
[root@oel62 ~]# lsmod | grep oracle
oracleasm              48482  1 Install oracleasm-support:
root@oel62 ~]# yum install oracleasm-support
Installed:
  oracleasm-support.x86_64 0:2.1.5-1.el6                                                                                      
Complete!I have only oracleasm-support(no oracleasmlib!)
[root@oel62 ~]# rpm -qa| grep oracleasm
oracleasm-support-2.1.5-1.el6.x86_64
[root@oel62 ~]# Status:
[root@oel62 ~]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: noConfigure:
[root@oel62 ~]#  /etc/init.d/oracleasm configure
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]Status again:
root@oel62 ~]# /etc/init.d/oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yesI create 2 virtual disks and then create partition on those disks.
Result: /dev/sdg1, /dev/sdh1
and now create ASM disks:
[root@oel62 ~]# oracleasm createdisk asmdisk1 /dev/sdg1
Writing disk header: done
Instantiating disk: done
[root@oel62 ~]# oracleasm createdisk asmdisk2 /dev/sdh1
Writing disk header: done
Instantiating disk: donelistdisks
[root@oel62 ~]# oracleasm listdisks
ASMDISK1
ASMDISK2querydisk
[root@oel62 ~]# oracleasm querydisk -d /dev/sdg1
Device "/dev/sdg1" is marked an ASM disk with the label "ASMDISK1"
[root@oel62 ~]# oracleasm querydisk -d /dev/sdh1
Device "/dev/sdh1" is marked an ASM disk with the label "ASMDISK2"-Create diskgroup TEST_DG:
run asmca, step through all screens, specify "Disk discovery path"
/dev/oracleasm/disks/*Result:
ASMCMD [+] > lsdsk -p -G test_dg
Group_Num  Disk_Num      Incarn  Mount_Stat  Header_Stat  Mode_Stat  State   Path
        1         0  3915949404  CACHED      MEMBER       ONLINE     NORMAL  /dev/oracleasm/disks/ASMDISK1
        1         1  3915949403  CACHED      MEMBER       ONLINE     NORMAL  /dev/oracleasm/disks/ASMDISK2-Run dbca create a database testdb with storage using diskgroup TEST_DG
and here is the DB testdb on diskgroup test_dg
[grid@oel62 ~]$ rlwrap asmcmd -p
ASMCMD [+] > ls test_dg/testdb
CONTROLFILE/
DATAFILE/
ONLINELOG/
PARAMETERFILE/
TEMPFILE/
spfiletestdb.ora
ASMCMD [+] > ls -l test_dg/testdb/datafile
Type      Redund  Striped  Time             Sys  Name
DATAFILE  UNPROT  COARSE   JUN 27 11:00:00  Y    SYSAUX.257.787055133
DATAFILE  UNPROT  COARSE   JUN 27 11:00:00  Y    SYSTEM.256.787055133
DATAFILE  UNPROT  COARSE   JUN 27 11:00:00  Y    UNDOTBS1.258.787055133
DATAFILE  UNPROT  COARSE   JUN 27 11:00:00  Y    USERS.259.787055133
ASMCMD [+] > Service status:
[grid@oel62 ~]$ srvctl status diskgroup -g test_dg
Disk Group test_dg is running on oel62
[grid@oel62 ~]$ Once again i did not install oracleasmlib!
I have no RPM oracleasmlib on my system:
root@oel62 ~]# rpm -qa| grep oracleasm
oracleasm-support-2.1.5-1.el6.x86_64It is a "perfect" installation, or what do you mean?
It works fine, but why it works??
Well, folks! Tell me now why it works without oracleasmlib ?
What happened, what is going on here?
Thank you for reading my long text here!

Similar Messages

  • Do I need adobe CC subscription for using photoshop touch for ipad

    Do I need adobe CC subscription for using photoshop touch for ipad?

    No, Photoshop Touch is a different software and isn't part of Adobe's Creative Cloud (CC) series of software you can get with their monthly subscription.
    Photoshop Touch is a mobile version of Photoshop you can get for just $9.99, and then you'll have it for life.
    It's a great, must-have tool in my opinion, but it's very limited and won't give you all the things you would get with a regular Photoshop desktop-version, like the one you get when you subscribe to Creative Cloud.
    Best,

  • Ipod Nano ipod needs to be reformatted for use with windows

    I keep getting ipod needs to be feformatted for use with windows, how do i do this, I can't get it off.

    On the PC, click here and follow the instructions.
    (27135)

  • My ipod touch don´t have much sound on musics (i already go to settings- music-sound limit unlock), i need more power sound for using ipod to teach fitness classes what can i do!?

    My ipod touch don´t have much sound on music tracks (i already go to settings-music-sound limit unlock), i really need more power sound for using ipod to teach fitness classes what can i do!?

    I imagine that... a limit of sound because ears problems understand that...but in my case i need power i´m not buying a better surround for the gym (the owner must do, but everyone use cd´s and i not see me record cd´s again) ...its the only problem for this iPod to be perfect.... I´m in Portugal, by the way!!! and thanks again for you helping!!

  • Problem for using oracle xml parser v2 for 8.1.7

    My first posting was messed up. This is re-posting the same question.
    Problem for using oracle xml parser v2 for 8.1.7
    I have a sylesheet with
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">.
    It works fine if I refer this xsl file in xml file as follows:
    <?xml-stylesheet type="text/xsl" href="http://...../GN.xsl"?>.
    When I use this xsl in pl/sql package, I got
    ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    After I changed name space definition to
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> in xsl file, I got
    ORA-20100: Error occurred while processing: XSL-1019: Expected ']' instead of '$'.
    I am using xml parser v2 for 8.1.7
    Can anyone explain why it happens? What is the solution?
    Yi

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Element's dont have text content, they [b]contain text node children.
    So instead of trying to setNodeValue() on the element, construct a Text node and use the appendChild method on the element to append the text node as a child of the element.<HR></BLOCKQUOTE>
    Steve,
    We are also creating an XML DOM from java and are having trouble getting the tags created as we want. When we use XMLText it creates the tag as <tagName/>value rather than <tagName>value</tagName>. We want separate open and close tags. Any ideas?
    Lori

  • Question for using ORACLE with SOLARIS

    Hi Experts,
    I have worked Oracle with Linux in one of my projects 2yrs back and i was just a developer, used to write SQL Query, Creating Table and Objects.
    Now i got a question from TL which is
    Tell me about consequences for using Oracle with Solaris?
    I am not worked ORACLE with SOLARIS, Can some one give me the answer for this question with
    1. Difference between ORACLE with LINUX and ORACLE with SOLARIS.
    2. Advantages and Disadvantages Between ORACLE with LINUX and ORACLE with SOLARIS.
    Thanks,
    MuraliDharan V

    Hi MuraliDharan V,
    It would had been better if you had searched first;
    Here is one
    Advantage for Linux64-bit Versus Solaris-x86_64 OS in RAC
    And beside that your question is incomplete:
    -What Oracle? Database, etc
    -Which Version? 9i, 10g, etc
    Aside from that a simple search on google might have answered your question as well.
    But I think there is some new trend of dumping questions here before searching.
    Ex Senior DBA

  • Design Choices and is LiveCycle needed? best practices for using RTMP/AMF over HTTP/XML communicatio

    Hi,
    I am new to flex/RIA. I am exploring different design choices especially in client server communication. On client side we will be using Flash based RIA (using Actions scripts).
    There will be some simple forms (like for login, registration, payments etc) and some simple reports including with several graphs and charts. Each chart might have 1000 to 1500 data points etc. There are not video or audio content as such. On server side we have Servlets, java API and some EJBs to provide the business logic and real time prices/content (price update is usually every 10 seconds) /data. Some of the content will be static as well.
    I have following questions in my mind. Is it worth it to use RTMP/AMF channels for the followings?
    1. For simple forms processing (Mapping Actions scripts classes to Java classes). Like to display/retrieve/update data for/from registration forms.
    a. If yes, why? Am I going to be stuck with LCDS? Is it worth it? What could be the cons for heavy usage/traffic scenarios
    b. If not what are the alternates? Should I create the web services? Or only servlets are sufficient (ie. Only HTTP+Java based server side with no LCDS+RTMP+AMF)? All forms need to communicate on secure channel.
    2. For pushing the real time prices/content which we may need to update every 15 seconds on user interface using graphs and charts. Can I do it with some standard J2EE/JMS way with RIA (Flex) on front-end? i.e. Flash application will keep pulling data from some topic. Data can be updated after few secs or few minutes which cant be predicted.
    3. Are there any scalability issues for using RTMP? What happens if concurrent users increase 10 times within a year?
    4. What are the real advantages of using RTMP/AMF instead of simple HTTP/HTTPS probably using xml based objects
    5. Do I need to use LCDS if I am using AMF only on client side? Basically I mean if I am sending an object in form of xml from a servlet. Can some technology in Flash (probably AMF) in client side map it an Action script object?
    6. What are the primary advantages of using LCDS in a system? Is there any alternate solutions? Can I use some standard solutions for data push technologies?
    I would like that my server side implementation can be used by multiple types of clients e.g. RIA browser based, mobile based, third party software (any technology) etc.
    I appreciate if you can kindly refer me to some reading materials which can help me deciding the above. If this is not the right place to post this message then please do refer me to the place where I can post such questions.
    Thanks and Kind regards,
    Jalal

    Hi Jalal,
    Let me see if I can help with some of your questions
    1. Yes, you can use LCDS for simple forms processing. Any time you want to
    move data between the Flex client and the server, LCDS (or its free Open
    source cousin BlazeDS) is going to help. I would expect you would use the
    mx:RemoteObject MXML tag to invoke server side code, passing it the form
    data input by the application user.
    2. If you need to push near real-time data, LCDS gives you the RTMP channel
    which can scale quite nicely. You can then use the mx:Consumer MXML tag to
    subscribe the clients to the messages, which can come from almost anywhere,
    include JMS topics or queues.
    3. RTMP (included in LCDS) is the best option for scaling to tens of
    thousands of users and the LCDS servers can be clustered to proved better
    scaling.
    4. The AMF3 protocol used over the RTMP channels performs much faster than
    simple XML over HTTP. See this blog posting for some tests:
    http://www.jamesward.org/census/.
    5. If you are sending a Flex application XML, then I would recommend using
    the E4X API to work with the XML. This is a pretty nice and powerful way to
    work with XML. If you want Actionscript objects (and probably better
    performance), then using AMF serialization to Actionscript objects is the
    way to go.
    6. Primary advantages? There are many, but mainly you can avoid thinking
    about the plumbing and concentrate on solving your application and business
    logic problems.
    Hope this helps you a little
    Tom Jordahl
    Adobe

  • Do I need labview drvier disc for using VISA?

    Hi,
      Do I need  to install the labview driver disc for using VISA (virtual serial port) function? I get the error as the picture? I have no clue what happen.
    thanks
    ====================
    =Labview 7.0 & 8.0 & 8.5=
    =====================
    Attachments:
    labview8.JPG ‏22 KB

    my aim is to use my bluetooth enable notebook (no serial port) to control a bluetooth serial port adapar on a circuit.
    That means "only a bluetooth serial port adapar" is in the whole project. I need to use my notebook bluetooth to control the bluetooth serial port adapar output in the independent circuit, any suggestion?
    I think I need to control a "virtual serial port" and then send the "virtual serial port" data via bluetooth, then use those bluetooth infromation to control the independent circuit        
    Message Edited by zmarcoz on 02-16-2008 03:05 PM
    ====================
    =Labview 7.0 & 8.0 & 8.5=
    =====================

  • Workaround for using Oracle JDBC extension with WLS pooling

    Reading the newsgroup I saw that many of us encountered the problems
    with ClassCastException when tried to use Oracle JDBC extension
    with WLS pooling. I also had.
    In this case BEA recommends to use dangerous
    method getVendorConnection() which exposes
    the physical connection object to your code.
    Yes it's really dangerous because of unsafe usage may breaks
    WLS pooled connection(s).
    Moreover, this practice will make your JDBC code
    unportable (your JDBC code in addition to Oracle dependence
    became Weblogic dependent):
    void doSmth() {
    Connection con = ...;
    Connection vCon = ((WLConnection)con).getVendorConnection();
    // + mess of usage con in one places and vCon in others
    // (where Oracle extensions are needed)
    // !Don't forget to don't close vCon!
    Sux.
    I found the workaround.
    Introduction
    ============
    Yes the real cause of ClassCastException is that
    in depth of Oracle driver the casting
    to class oracle.jdbc.driver.OracleConnection
    (not to interface oracle.jdbc.OracleConnection)
    is performed.
    Someone can say that this is bug or pure desing.
    Weblogic pooled connection provide dynamic
    implementation for all public interfaces
    which real physical (wrapped) connection object implements.
    Great feature!
    But I guess that all interface methods implemented
    by simple call-delegation to physical (wrapped) connection object.
    In case of oracle.jdbc.OracleConnection interface
    this approach doesn't work for at least one its method:
    public OracleConnection unwrap()
    WLS pooled connection shoudn't implement this method by
    delegation to physical connection object BUT should
    return physical connection object itself!
    // Wrong implementation of unwrap()
    // delegation is used
    public OracleConnection unwrap() {
    return physicalConnection.unwrap();
    // Right implementation of unwrap()
    // physical connection returned
    public OracleConnection unwrap() {
    return physicalConnection;
    Workaround
    ==========
    1. Develop your own OracleConnection wrapper class:
    import oracle.jdbc.OracleConnection;
    import weblogic.jdbc.extensions.WLConnection;
    public class MyOracleConnectionImpl implements OracleConnection {
    private OracleConnection con;
    public MyOracleConnectionImpl(OracleConnection connection)
    throws SQLException
    this.con = connection;
    public OracleConnection unwrap() {
    return (OracleConnection)
    ((WLConnection)con).getVendorConnection();
    /* Implement all other methods by delegation to con object */
    2. Don't get Connections directly from DataSource --
    develop your own simple (may be static) utility
    class which retrives Connections from dataSource
    and returns them wrapped into your MyOracleConnectionImpl
    to your code from some method:
    puclic abstract class MyConnectionSource {
    public static Connection getConnection() {
    Connection con = // get it from DataSource
    return new MyOracleConnectionImpl((OracleConnection)con);
    3. Add attribute RemoveInfectedConnectionsEnabled="false"
    to definition of your JDBCConnectionPool within config.xml
    You may do it because of you `safely` use vendorConnection --
    you don't expose it to application code.
    4. Enjoy the Oracle JDBC extensions in your code!
    Example:
    Connection con = MyConnectionSource.getConnection;
    ArrayDescriptor add =
    ArrayDescriptor.createDescriptor("your_type", con);
    Hope it helps to someone.
    Best regards,
    Eugene Voytitsky

    Hello Eugene Voytitsky,
    Thanks Eugene Voytitsky for your idea
    I have tried the solution suggested by You, but it did not work.
    It still throws ClassCastException.
    I am sorry for posting the whole code of two classes below.
    I did this to give you more clarity.
    I am also indicating the place where the exception was thrown..
    Please let me know if I am doing something wrong.
    OracleConnection Wrapper class
    package ejbTesting;
    // sql imports
    import java.sql.CallableStatement;
    import java.sql.Connection;
    import java.sql.DatabaseMetaData;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import java.sql.SQLWarning;
    import java.sql.Statement;
    // util imports
    import java.util.Map;
    import java.util.Properties;
    // imports from Oracle Driver Classes
    import oracle.jdbc.OracleConnection;
    import oracle.jdbc.OracleOCIFailover;
    import oracle.jdbc.OracleSavepoint;
    // import from Weblogic extensions
    import weblogic.jdbc.extensions.WLConnection;
    public class WeblogicConnectionWrapper implements OracleConnection
         // oracle connection object
         private OracleConnection connection;
         public WeblogicConnectionWrapper (OracleConnection orclConnection)
              try
                   this.connection = orclConnection;
              catch(Exception unexpected )
                   unexpected.printStackTrace();
         public OracleConnection unwrap()
              try
              // The datasource returns a weblogic.jdbc.pool.Connection
              // This needs to be type casted to weblogic.jdbc.extensions.WLConnection
              // Only this weblogic.jdbc.extensions.WLConnection CAN BE type casted
              // to OracleConnection
         return (OracleConnection) ((WLConnection) connection).getVendorConnection();
         catch(Exception sqlException )
              sqlException.printStackTrace ();
              return null;
         /* Implement all other methods by delegation to connection object */      
    public Connection _getPC()
    return connection._getPC();
    public void archive(int i, int j, String s)
    throws SQLException
    connection.archive(i, j, s);
    public void assertComplete()
    throws SQLException
    connection.assertComplete();
    public void clearWarnings()
    throws SQLException
    connection.clearWarnings();
    public void close()
    throws SQLException
    connection.close();
    public void commit()
    throws SQLException
    connection.commit();
    public Statement createStatement()
    throws SQLException
    return connection.createStatement();
    public Statement createStatement(int i, int j)
    throws SQLException
    return connection.createStatement(i, j);
    public boolean getAutoClose()
    throws SQLException
    return connection.getAutoClose();
    public boolean getAutoCommit()
    throws SQLException
    return connection.getAutoCommit();
    public CallableStatement getCallWithKey(String s)
    throws SQLException
    return connection.getCallWithKey(s);
    public String getCatalog()
    throws SQLException
    return connection.getCatalog();
    public boolean getCreateStatementAsRefCursor()
    return connection.getCreateStatementAsRefCursor();
    public int getDefaultExecuteBatch()
    return connection.getDefaultExecuteBatch();
    public int getDefaultRowPrefetch()
    return connection.getDefaultRowPrefetch();
    public Object getDescriptor(String s)
    return connection.getDescriptor(s);
    public boolean getExplicitCachingEnabled()
    throws SQLException
    return connection.getExplicitCachingEnabled();
    public boolean getImplicitCachingEnabled()
    throws SQLException
    return connection.getImplicitCachingEnabled();
    public boolean getIncludeSynonyms()
    return connection.getIncludeSynonyms();
    public Object getJavaObject(String s)
    throws SQLException
    return connection.getJavaObject(s);
    public DatabaseMetaData getMetaData()
    throws SQLException
    return connection.getMetaData();
    public Properties getProperties()
    return connection.getProperties();
    public boolean getRemarksReporting()
    return connection.getRemarksReporting();
    public boolean getRestrictGetTables()
    return connection.getRestrictGetTables();
    public String getSQLType(Object obj)
    throws SQLException
    return connection.getSQLType(obj);
    public String getSessionTimeZone()
    return connection.getSessionTimeZone();
    public int getStatementCacheSize()
    throws SQLException
    return connection.getStatementCacheSize();
    public PreparedStatement getStatementWithKey(String s)
    throws SQLException
    return connection.getStatementWithKey(s);
    public int getStmtCacheSize()
    return connection.getStmtCacheSize();
    public short getStructAttrCsId()
    throws SQLException
    return connection.getStructAttrCsId();
    public boolean getSynchronousMode()
    return connection.getSynchronousMode();
    public int getTransactionIsolation()
    throws SQLException
    return connection.getTransactionIsolation();
    public Map getTypeMap()
    throws SQLException
    return connection.getTypeMap();
    public String getUserName()
    throws SQLException
    return connection.getUserName();
    public boolean getUsingXAFlag()
    return connection.getUsingXAFlag();
    public SQLWarning getWarnings()
    throws SQLException
    return connection.getWarnings();
    public boolean getXAErrorFlag()
    return connection.getXAErrorFlag();
    public boolean isClosed()
    throws SQLException
    return connection.isClosed();
    public boolean isLogicalConnection()
    return connection.isLogicalConnection();
    public boolean isReadOnly()
    throws SQLException
    return connection.isReadOnly();
    public String nativeSQL(String s)
    throws SQLException
    return connection.nativeSQL(s);
    public Object openJoltConnection(String s, short word0, short word1)
    return connection.openJoltConnection(s, word0, word1);
    public void oracleReleaseSavepoint(OracleSavepoint oraclesavepoint)
    throws SQLException
    connection.oracleReleaseSavepoint(oraclesavepoint);
    public void oracleRollback(OracleSavepoint oraclesavepoint)
    throws SQLException
    connection.oracleRollback(oraclesavepoint);
    public OracleSavepoint oracleSetSavepoint()
    throws SQLException
    return connection.oracleSetSavepoint();
    public OracleSavepoint oracleSetSavepoint(String s)
    throws SQLException
    return connection.oracleSetSavepoint(s);
    public int pingDatabase(int i)
    throws SQLException
    return connection.pingDatabase(i);
    public CallableStatement prepareCall(String s)
    throws SQLException
    return connection.prepareCall(s);
    public CallableStatement prepareCall(String s, int i, int j)
    throws SQLException
    return connection.prepareCall(s, i, j);
    public CallableStatement prepareCallWithKey(String s)
    throws SQLException
    return connection.prepareCallWithKey(s);
    public PreparedStatement prepareStatement(String s)
    throws SQLException
    return connection.prepareStatement(s);
    public PreparedStatement prepareStatement(String s, int i, int j)
    throws SQLException
    return connection.prepareStatement(s, i, j);
    public PreparedStatement prepareStatementWithKey(String s)
    throws SQLException
    return connection.prepareStatementWithKey(s);
    public void purgeExplicitCache()
    throws SQLException
    connection.purgeExplicitCache();
    public void purgeImplicitCache()
    throws SQLException
    connection.purgeImplicitCache();
    public void putDescriptor(String s, Object obj)
    throws SQLException
    connection.putDescriptor(s, obj);
    public void registerApiDescription(String s, short word0, short word1, String
    s1)
    connection.registerApiDescription(s, word0, word1, s1);
    public void registerSQLType(String s, Class class1)
    throws SQLException
    connection.registerSQLType(s, class1);
    public void registerSQLType(String s, String s1)
    throws SQLException
    connection.registerSQLType(s, s1);
    public void registerTAFCallback(OracleOCIFailover oracleocifailover, Object
    obj)
    throws SQLException
    connection.registerTAFCallback(oracleocifailover, obj);
    public void rollback()
    throws SQLException
    connection.rollback();
    public void setAutoClose(boolean flag)
    throws SQLException
    connection.setAutoClose(flag);
    public void setAutoCommit(boolean flag)
    throws SQLException
    connection.setAutoCommit(flag);
    public void setCatalog(String s)
    throws SQLException
    connection.setCatalog(s);
    public void setCreateStatementAsRefCursor(boolean flag)
    connection.setCreateStatementAsRefCursor(flag);
    public void setDefaultExecuteBatch(int i)
    throws SQLException
    connection.setDefaultExecuteBatch(i);
    public void setDefaultRowPrefetch(int i)
    throws SQLException
    connection.setDefaultRowPrefetch(i);
    public void setExplicitCachingEnabled(boolean flag)
    throws SQLException
    connection.setExplicitCachingEnabled(flag);
    public void setImplicitCachingEnabled(boolean flag)
    throws SQLException
    connection.setImplicitCachingEnabled(flag);
    public void setIncludeSynonyms(boolean flag)
    connection.setIncludeSynonyms(flag);
    public void setReadOnly(boolean flag)
    throws SQLException
    connection.setReadOnly(flag);
    public void setRemarksReporting(boolean flag)
    connection.setRemarksReporting(flag);
    public void setRestrictGetTables(boolean flag)
    connection.setRestrictGetTables(flag);
    public void setSessionTimeZone(String s)
    throws SQLException
    connection.setSessionTimeZone(s);
    public void setStatementCacheSize(int i)
    throws SQLException
    connection.setStatementCacheSize(i);
    public void setStmtCacheSize(int i)
    throws SQLException
    connection.setStmtCacheSize(i);
    public void setStmtCacheSize(int i, boolean flag)
    throws SQLException
    connection.setStmtCacheSize(i, flag);
    public void setSynchronousMode(boolean flag)
    connection.setSynchronousMode(flag);
    public void setTransactionIsolation(int i)
    throws SQLException
    connection.setTransactionIsolation(i);
    public void setTypeMap(Map map)
    throws SQLException
    connection.setTypeMap(map);
    public void setUsingXAFlag(boolean flag)
    connection.setUsingXAFlag(flag);
    public void setWrapper(OracleConnection oracleconnection)
    connection.setWrapper(oracleconnection);
    public void setXAErrorFlag(boolean flag)
    connection.setXAErrorFlag(flag);
    public void shutdown(int i)
    throws SQLException
    connection.shutdown(i);
    public void startup(String s, int i)
    throws SQLException
    connection.startup(s, i);
    Util class to get Wrapped Connections from
    datasource
    package ejbTesting;
    // j2ee imports
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    // sql imports
    import java.sql.Connection;
    // imports from Oracle Driver Classes
    import oracle.jdbc.OracleConnection;
    * Wrapper class for the DataSource Connection from Weblogic pool
    public class DataSourceConnectionWrapper
         // datasource variable
         private static transient DataSource datasource = null;
         private static String dbName = "jdbc/workbench";
    * Method that returns the database connection
         public static Connection getConnection()
              try
                   // initialsing the datasource object
                   initialiseDataSource ();
                   // Getting a connection from the datasource
                   Connection con = datasource.getConnection( );
                   // wrapping it custom wrapper class and
                   // returning the connection object
                   return new WeblogicConnectionWrapper((OracleConnection)con);
              catch(Exception exception )
                   exception.printStackTrace();
                   return null;
         private static void initialiseDataSource( ) throws Exception
    if ( datasource == null )
    try
    InitialContext ic = new InitialContext( );
    datasource = (DataSource) ic.lookup( dbName );
    catch (Exception ne )
    throw new Exception( "NamingException while looking up DataSource with
    JNDI name" +
    dbName + ": \n" + ne.getMessage( ) );
    Exception Stack Trace
    The line 46 in DataSourceConnectionWrapper
    corresponds to
    return new WeblogicConnectionWrapper((OracleConnection)con);
    Which I feel is logical as the connection which we get from Weblogic
    datasource cannot be type casted to OracleConnection
    java.lang.ClassCastException: weblogic.jdbc.pool.Connection
    at ejbTesting.DataSourceConnectionWrapper.getConnection(DataSourceConnectionWrapper.java:46)

  • Justification for Using Oracle Text

    Hello,
    Can someone give me good cause (justification) for utilizing Oracle Text over other tools out there that are not tied directly to Oracle?
    Apparently it is possible to identify metadata within text and do keyfield and keyword searches this way with other tools, but I question the accuracy, speed, or value in terms of data relationships with this approach. I feel the relationships belong in the database along with the indexes but can't convince anyone of this.
    Has anyone experience working with Oracle Text where relationships help to drive the search and can give me good cause to this approach?
    thanks

    Hi,
    Justification depends on your use. For starters:
    1) It is included in both standard and enterprise editions of the db at no added charge
    2) Uses SQL to query and maintain
    3) Includes a number of built-ins for maintenance and optimization
    4) It has 4 different index types for various uses
    5) It can index any data type
    6) UltraSearch is included in both standard and enterprise editions of the db at no additional charge (this is a crawler built on Oracle Text).
    As for the integration - it is optimized for Oracle. If you were to build a standalone indexing solution you would probably design it a bit different, but Oracle Text takes into account the optimizer and database structure.
    It has other features (same as some of the other tools) like a knowledge base, classification, clustering, theme extraction, language-specific features, ability to index documents in and out of the database, stopwords, stemming, wildcard, progressive relaxation, and the list goes on.
    I guess my question would be, what is the reason for NOT using it? That might give me a better line on the reasoning so that I can respond with something a bit more specific.
    Thanks,
    Ron

  • Justification for using Oracle Text vs Other Search Tools

    Hello,
    Can someone give me good cause (justification) for utilizing Oracle Text over other tools out there that are not tied directly to Oracle?
    Apparently it is possible to identify metadata within text and do keyfield and keyword searches this way with other tools, but I question the accuracy, speed, or value in terms of data relationships with this approach. I feel the relationships belong in the database along with the indexes but can't convince anyone of this.
    Has anyone experience working with Oracle Text where relationships help to drive the search and can give me good cause to this approach?
    thanks

    Tools like Autonomy have fantastic searching functions, far in excess of what we get with Text. What they aren't very good at is the database side of things. So if your prime concern is to be able to search free text documents on your file system using a baroque range of filters then Text is not the right choice. But if you want to join the outcomes of free text searches with structured data in database tables or if the text you want to search is stored in database tables then using Oracle's built-in functionality is the better approach.
    From your post I'm not sure which scenario fits your situation more closely.
    Cheers, APC

  • Benefits for using Oracle RAC in SUNCLUSTER

    Hi SC expert,
    What is the technical benefits of using Oracle RAC in Suncluster, Both are cluster can take care of HA and Load balancing. which are the features are not in Oracle RAC. I am able to configure and check the functionality of Oracle RAC with SC. But I want some technical highlights to project SC have specific benefits over OracleRAC.
    Any suggestion and recommentation are welcome.
    regards
    karthikeyan.N

    Hi,
    goto http://www.sun.com/cluster and search for "White Paper, Sun Cluster 3.2 Software: Making Oracle Database 10G R2 RAC Even More Unbreakable"
    It has all the technical details that you are looking for.
    Regards
    Hartmut

  • I need customer references who are using Oracle Files

    Dear All,
    I'm looking for customer references who are using Oracle IFS or OCM or Oracle Files for their document management systems. So, if anyone can support me i appreciate.

    Please see:
    http://www.oracle.com/customers/index.html?collabsuite.html
    -sancho

  • When does LIBPATH need to be set for an Oracle RDBMS running on AIX?

    I am trying to determine the impacts of not having LIBPATH set in an AIX 5.3 environment running Oracle 10.2.0.4 64 bit databases. It would appear these databases may have been ported from Linux and the LD_LIBRARY_PATH variable was set in some of the scripts (i.e. Cold backup that shutsdown and starts the database).
    My interpretation from research is LD_LIBRARY_PATH would be ignored by AIX, although some hits I have found show this envionment variable set and LIBPATH. If LIBPATH is not set for database scripts (i.e. shutdown/startup for backup, database maintenance, etc) is there any concern? LIPBPATH is not set in the .profile for the oracle account either.

    908340 wrote:
    I am trying to determine the impacts of not having LIBPATH set in an AIX 5.3 environment running Oracle 10.2.0.4 64 bit databases. It would appear these databases may have been ported from Linux and the LD_LIBRARY_PATH variable was set in some of the scripts (i.e. Cold backup that shutsdown and starts the database).
    My interpretation from research is LD_LIBRARY_PATH would be ignored by AIX, although some hits I have found show this envionment variable set and LIBPATH. If LIBPATH is not set for database scripts (i.e. shutdown/startup for backup, database maintenance, etc) is there any concern? I am not concerned.

  • Do i need a web server for using JDBC?

    I read every article about jdbc but i cannot get it working. It looks like everything is good with the program. So the problem is in required components.
    Do i need a web server to get it woking? Or it is enough to have Eclipse, jdbc driver in classpath?
    Tell me about how that url is working.
    For example i have url with localhost. Who is handling that adress? Database? Can you explain what component answers for access to my database through this url parameter. THnx in advance)

    I am using PostgreSQL
    import java.sql.*;
    public class JDBCTest {
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
               String url = "jdbc:posgresql://localhost:5432/postgres";
                   Connection con;
                   Statement stmt;
                   try {
                        Class.forName("org.postgresql.Driver");
                   } catch(java.lang.ClassNotFoundException e) {
                        System.err.print("ClassNotFoundException: ");
                        System.err.println(e.getMessage());
                   try {
                        con = DriverManager.getConnection(url,
                                                      "postgres", "1111");
                        stmt = con.createStatement();
                        con.setAutoCommit(false);
                        /*String insertStore1 = "INSERT INTO test1 VALUES (" +
                          "newval,1);";
                        stmt.addBatch(insertStore1)
                        int [] updateCounts = stmt.executeBatch(); */
                     ResultSet rs = stmt.executeQuery("SELECT * FROM test1");
                        System.out.println("Table test1:");
                        while (rs.next()) {
                             int storeNo = rs.getInt("second_column");
                             String first_column = rs.getString("first_column");          
                             System.out.println(storeNo);
                             System.out.println(first_column);
                        rs.close();
                        stmt.close();
                        con.close();
                   } catch(BatchUpdateException b) {
                        System.err.println("-----BatchUpdateException-----");
                        System.err.println("SQLState:  " + b.getSQLState());
                        System.err.println("Message:  " + b.getMessage());
                        System.err.println("Vendor:  " + b.getErrorCode());
                        System.err.print("Update counts:  ");
                        int [] updateCounts = b.getUpdateCounts();
                        for (int i = 0; i < updateCounts.length; i++) {
                             System.err.print(updateCounts[i] + "   ");
                        System.err.println("");
                   } catch(SQLException ex) {
                        System.err.println("SQLException: " + ex.getMessage());
                        System.err.println("SQLState:  " + ex.getSQLState());
                        System.err.println("Message:  " + ex.getMessage());
                        System.err.println("Vendor:  " + ex.getErrorCode());
    }1 ) Also i have installed PostgreSQL 8.2 , and its running in my services as "PostgreSQL Database Server (postmaster)"
    2) I included postgresql-8.2-505.jdbc3.jar into classpasth from eclipse (added it as external library)
    3) I have added tcpip_socket = 1 to postgresql.conf
    4) I have
    # IPv4 local connections:
    host all all 127.0.0.1/32 trust
    host all all localhost/32 trust
    # IPv6 local connections:
    #host all all ::1/128 md5
    in my pg_hba.conf
    ==========================
    Finally
    And i get error: no suitable sql driver
    but i don't get System.err.print("ClassNotFoundException: "); as you can see in my code means my classpath is correct...

Maybe you are looking for

  • No longer able to drag and drop

    after purchasing songs from itunes I am no longer able to drag and drop from itunes to ipod

  • Auto-CC to myself or auto forward to own is not working in Q5

    Hi, This is the first time I m posting in Blackberry community, i hope to get quick response & resolution for the same. I have recently bought Q5 & major disappointment when i found that i cannot CC myself automatically like we used to do in Bold & C

  • How to have a unique list of items for separate dropdown lists?

    Software: Acrobat X (10) pro on Windows I want to create a pdf form in which all dropdown lists are populated with the same list of items to choose from. If I use the same field name for all drop down lists, the item selected in one dropdown list is

  • ITunes U course reports

    I have a public site on iTunes U with many collections. I just created a course using material from various collections of mine. How will video/podcast downloads from within the course be reported? Do I see what tracks were downloaded within a course

  • JSF ValueChangeListeners - What a mess - HELP!

    I have a page with a tabbed pane with two tabs. Each tab has a dataTable with rows of data that have been returned from a database call. There is a checkbox on each row of the datatable as well as four text fields. The checkbox has a valueChangeListe