JDNI name without jdbc/

I copy ant code from http://middlewaremagic.com/weblogic/?p=2504 and change it as follow. I use weblogic 10.3.4
New datasources can be created. However, the JNDI name is not complete. It doesn't contain jdbc/
<?xml version="1.0" ?>
<project name="deploy" default="makeDataSource" basedir=".">
<property name="wls.username" value="weblogic" />
<property name="wls.password" value="welcome1" />
<property name="wls.url" value="t3://localhost:7001" />
<property name="wls.targetServer" value="AdminServer" />
<property name="wls.domainName" value="SOAdomain5" />
<!--<property name="database.url" value="jdbc:pointbase:server://localhost:9092/demo" />-->
<property name="database.url" value="jdbc:oracle:thin:@localhost:1521:orcl"/>
<!--<property name="database.driver" value="com.pointbase.jdbc.jdbcUniversalDriver" />-->
<property name="database.driver" value="oracle.jdbc.xa.client.OracleXADataSource"/>
<property name="database.user" value="dstest" />
<property name="database.password" value="dstest" />
<property name="weblogic.jar" value="E:\Jdeveloper_11115\wlserver_10.3\server\lib" />
<echo message="${weblogic.jar}\weblogic.jar"/>
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
<classpath>
<pathelement location="${weblogic.jar}\weblogic.jar"/>
</classpath>
</taskdef>
<taskdef name="wlconfig" classname="weblogic.ant.taskdefs.management.WLConfig">
<classpath>
<pathelement location="${weblogic.jar}\weblogic.jar"/>
</classpath>
</taskdef>
<target name="makeDataSource">
<wlconfig username="${wls.username}" password="${wls.password}" url="${wls.url}">
<query domain="${wls.domainName}" type="Server" name="${wls.targetServer}" property="x" />
<create type="JDBCConnectionPool" name="TestDS">
<set attribute="CapacityIncrement" value="1"/>
<set attribute="DriverName" value="${database.driver}"/>
<set attribute="InitialCapacity" value="1"/>
<set attribute="MaxCapacity" value="10"/>
<set attribute="Password" value="${database.password}"/>
<set attribute="Properties" value="user=${database.user}"/>
<set attribute="RefreshMinutes" value="0"/>
<set attribute="ShrinkPeriodMinutes" value="15"/>
<set attribute="ShrinkingEnabled" value="true"/>
<set attribute="TestConnectionsOnRelease" value="false"/>
<set attribute="TestConnectionsOnReserve" value="true"/>
<set attribute="TestTableName" value="SYSTABLES"/>
<set attribute="URL" value="${database.url}"/>
<set attribute="Targets" value="${x}" />
</create>
<create type="JDBCDataSource" name="TestDS" >
<set attribute="JNDIName" value="jdbc/TestDS"/>
<set attribute="PoolName" value="TestDS"/>
<set attribute="Targets" value="${x}" />
</create>
</wlconfig>
</target>
</project>

Thank you. But I get errors. Could you help me to change the code?
Java_home in my computer is C:\Program Files\Java\jdk1.6.0_24
The password and username as well as url are correct. And I can login to wlst using connect('weblogic', 'welcome1', 't3://localhost:7001') in command line
How to start CompatabilityMBeanServer?
------------------------------------------error-----------------------------------
Buildfile: C:\JdevWorkspace\ANTdatasource\Project3\build.xml
[echo] ---13---
[echo] ---16---
makeDataSource:
[echo] ---18---
[wlst] ---1---
[wlst] Connecting to t3://localhost:7001 with userid weblogic ...
[wlst]
[wlst] The CompatabilityMBeanServer is not initialized properly.
[wlst] This might happen if the CompatabilityMBeanServer is
[wlst] disabled via the JMXMBean.
[wlst]
[wlst] To view the root cause exception use dumpStack()
[wlst]
[wlst] WLST detected that the RuntimeMBeanServer is not enabled. This
[wlst] might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
[wlst] Please ensure that this MBeanServer is enabled. Online WLST cannot
[wlst] function without this MBeanServer.
[wlst] Exception in thread "main" java.lang.IllegalStateException: Traceback (innermost last):
[wlst] File "makeDS.py", line 2, in ?
[wlst] File "<iostream>", line 22, in connect
[wlst] File "<iostream>", line 646, in raiseWLSTException
[wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST."
[wlst] Use dumpStack() to view the full stacktrace
[wlst]
[wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.printError(WLSTInterpreterInvoker.java:110)
[wlst] Traceback (innermost last):
[wlst] File "makeDS.py", line 2, in ?
[wlst] File "<iostream>", line 22, in connect
[wlst] File "<iostream>", line 646, in raiseWLSTException
[wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST."
[wlst] Use dumpStack() to view the full stacktrace
[wlst]
[wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.executePyScript(WLSTInterpreterInvoker.java:103)
[wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.main(WLSTInterpreterInvoker.java:27)
BUILD FAILED
C:\JdevWorkspace\ANTdatasource\Project3\build.xml:21: Java returned: 1
Total time: 19 seconds
<?xml version="1.0" encoding="UTF-8" ?>
<project name="makeDataSource" default="makeDataSource" basedir=".">
<path id="wl.classpath">
<fileset dir="E:\Jdeveloper_11115\wlserver_10.3\server\lib">
<include name="*.jar"/>
</fileset>
<!--
<fileset dir="E:\Jdeveloper_11115\modules">
<include name="*.jar"/>
</fileset> -->
</path>
<echo message="---13---"/>
<taskdef classpathref="wl.classpath" name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" >
</taskdef>
<echo message="---16---"/>
<target name="makeDataSource">
<echo message="---18---"/>
<!--<wlst debug="false" failOnError="true" executeScriptBeforeFile="true" fileName="makeDS.py" classpathref="wl.classpath">-->
<wlst fileName="makeDS.py" debug="false" failOnError="true" executeScriptBeforeFile="true" classpathref="wl.classpath">
<!--<script>
print 'In the target loop'
connect('weblogic','welcome1','t3://localhost:7001')
</script>-->
</wlst>
<echo message="---21---"/>
</target>
</project>
print '---1---'
connect("weblogic","welcome1", "t3://localhost:7001")
edit()
print '---4---'
# Change these names as necessary
dsname="TestDS"
server="AdminServer"
cd("Servers/"+server)
target=cmo
cd("../..")
startEdit()
# start creation
print 'Creating JDBCSystemResource with name '+dsname
jdbcSR = create(dsname,"JDBCSystemResource")
theJDBCResource = jdbcSR.getJDBCResource()
theJDBCResource.setName( dsname )
connectionPoolParams = theJDBCResource.getJDBCConnectionPoolParams()
connectionPoolParams.setConnectionReserveTimeoutSeconds(25)
connectionPoolParams.setMaxCapacity(100)
connectionPoolParams.setTestTableName("dual")
dsParams = theJDBCResource.getJDBCDataSourceParams()
dsParams.addJNDIName("jdbc/TestDs")
driverParams = theJDBCResource.getJDBCDriverParams()
driverParams.setUrl("jdbc:oracle:thin:@localhost:1521:ORCL")
driverParams.setDriverName("oracle.jdbc.driver.OracleDriver")
driverParams.setPassword("welcome1")
driverProperties = driverParams.getProperties()
proper = driverProperties.createProperty("user")
proper.setValue("hr")
jdbcSR.addTarget(target)
save()
activate(block="true")
print 'Done configuring the data source'

Similar Messages

  • TS4020 Can I change my iCloud email address name without creating a new account?

    CCan I change my iCloud email address name without creating a new account?

    Once you have created an iCloud account and chosen an @icloud.com address to go with it you can't change the address (short of creating an entirely new account).
    However, all is not lost. You can add up to three 'email aliases' - these are additional addresses (not accounts) which deliver into the same inbox as the main account. (In fact it's a good idea to give out alias addresses, rather than the main address, because if they attract spam you can easily change them.) (New aliases can only be @icloud.com ones; @me.com addresses cannot now be created.)
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account or move it to another account.
    More information on aliases here: http://help.apple.com/icloud/#mm6b1a490a

  • My brother-in-law recently passed away. My sister gave his MacBook Pro to my niece. When she opens and starts the laptop, it shows my brother-in-laws name. Is there a way to change his name to her name without formatting the device and starting over?

    My brother-in-law recently passed away. My sister gave his MacBook Pro to my niece. When she opens and starts the laptop, it shows my brother-in-laws name. Is there a way to change his name to her name without formatting the device and starting over?

    BigTex415,
    my condolences for your family’s loss. If all she seeks to do is to change the display name, and she’s willing to leave the account name unchanged, then she could do the following: log in as the administrative user and open the Users & Groups pane of System Preferences. If the padlock in the lower-left corner is locked, unlock it. Select the account that shows your brother-in-law’s name on the left-hand side of the window, and then on the right-hand side, change the text in the “Full name” textbox to her preferred display name. If desired, click on the padlock in the lower-left corner to relock it.

  • Is there any way I can program "Capture" to save pnp.picts always under the same name, without a date ?

    Is there any way I can program "Capture" to save pnp.picts on the desk, but always under the same name, without a date ?
    It may be sound weird, but I use it in a very special way, and I would like, like photoshop, that capture just replace
    the previous pict by the new one..without any warning.
    Pierre

    There is no way to go back from an XFA form to an Acroform even with Acrobat Pro, still less with Acrobat. You either need to remake the form, or change your plans to use a third party viewer - Adobe have an excellent range of programs they would like you to use!

  • HT201342 My iTunes account is under my @yahoo email address and I became accustomed to my @Me email and now like the idea of the @iCloud email address that was made. My question is can I change my iTunes account to my @iCloud name without losing my purcha

    My iTunes account is under my @yahoo email address and I became accustomed to my @Me email and now like the idea of the @iCloud email address that was made. My questions are....can I change my iTunes account to my @iCloud name without instead of my @yahoo name without losing my years snd years of purchases ? Can I also create an @Mac address ? ....or is my @yahoo and my @iCloud already recognized as the same by apple and my purchases would already be fine as well as restoring my devices ?

    Your purchases are permanently tied to the Apple ID (account) used to purchase them.  They can't be moved to another account and you can merge accounts.  You can start making new purchases with your iCloud ID if you want, but you will end up with two sets of purchases under two different IDs, adding further complication to your life.
    Also, your @icloud email address is an alias of your existing @me address; emails sent to either address will be routed to the same inbox.  You can decide which one you want to use as your default (as discussed here: http://support.apple.com/kb/HT5441) but you can't separate them.

  • How to get List Item attachments name without write any custom code or any database query?

    Hi,
    How to get List Items attachments name without write any custom code or any database query?

    You can get it from Rest,
    There are 2 options,
    1) create a 'Result Source' which has a search query for that List which has attachments 
     - Use rest query to get the 'Filename' , it will have the attachment file name 
    For example, if the result source id is : 73e6b573-abf8-4407-9e5f-8a85a4a95159 , then the query will be 
    http://[site URL]/_api/search/query?querytext='*'&selectproperties='Title,Path,FileExtension,SecondaryFileExtension,Filename'&sourceid='73e6b573-abf8-4407-9e5f-8a85a4a95159'&startrow=0&rowLimit=100
    You can refine the query, be giving proper 'querytext'
    2) Use the List rest api
    For example if your list guid is :38d524a1-e95c-439f-befd-9ede6ecd242e
    You can get he attachments for 1st item using this 
    http://[Site URL]/_api/lists(guid'38d524a1-e95c-439f-befd-9ede6ecd242e')/items(1)/AttachmentFiles
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Change schema name without doing export and import

    Is there a way of changing the name of a database schema without having to create a new user and exportng objects from the old schema into the new schema?
    Are there any system tables that can be changed to modify schema name without creating a new schema?

    SQL> select user#,name from user$ where user#=55;
    USER# NAME
    55 HR
    SQL> desc hr.employees
    Name Null? Type
    ----------------------------------------- -------- ---------------------------- EMPLOYEE_ID NOT NULL NUMBER(6)
    FIRST_NAME VARCHAR2(20)
    LAST_NAME NOT NULL VARCHAR2(25)
    EMAIL NOT NULL VARCHAR2(25)
    PHONE_NUMBER VARCHAR2(20)
    HIRE_DATE NOT NULL DATE
    JOB_ID NOT NULL VARCHAR2(10)
    SALARY NUMBER(8,2)
    COMMISSION_PCT NUMBER(2,2)
    MANAGER_ID NUMBER(6)
    DEPARTMENT_ID NUMBER(4)
    SQL> update user$ set name='RH' where user#=55;
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL> select user#,name from user$ where user#=55;
    USER# NAME
    55 RH
    SQL> desc rh.employees
    ERROR:
    ORA-04043: object rh.employees does not exist
    SQL> desc hr.employees
    Name Null? Type
    ----------------------------------------- -------- ---------------------------- EMPLOYEE_ID NOT NULL NUMBER(6)
    FIRST_NAME VARCHAR2(20)
    LAST_NAME NOT NULL VARCHAR2(25)
    EMAIL NOT NULL VARCHAR2(25)
    PHONE_NUMBER VARCHAR2(20)
    HIRE_DATE NOT NULL DATE
    JOB_ID NOT NULL VARCHAR2(10)
    SALARY NUMBER(8,2)
    COMMISSION_PCT NUMBER(2,2)
    MANAGER_ID NUMBER(6)
    DEPARTMENT_ID NUMBER(4)
    conclusion:
    changing the name in user$ does not change then schema name

  • Change administrator name without starting over.

    Hope someone can tell me how to change the administrator name and or delete the one that's in there that was cemented in the system when I got the computer and replace it with my name, without re-formating the drive and starting over. It's a G4 tower with 10.4.11. I have tried everything I can think of....
    Thanks! you Mac guru guys. I know someone knows how to do this...
    Bud

    I found a way to do this but it might be scary for a newbie. Open the accounts in system preferences and create a sub account with the name you want to use as the new administrator. Next check the new user to allow to administer the account and remove the check mark in the original administrator. Now open the library folder on the hard drive and find the preferences folder. Trash the com.apple.preferences.accounts.plist and reboot. The new name you created and authorized will now be the administrator. The original administrator will be deleted.
    The kicker is you will not be able to ever change the account settings. The accounts button will disappear in the system preferences. Also you may loose contact with some software as the system partially reverts back to default. DO THIS AT YOUR OWN RISK and don't do it without backing up important files first externally and also be sure you have the install disks for your software if you need to reinstall something. It worked for me but so far I have only done it once. I did loose Safari bookmarks and some other minor things, had to re-do mail preferences but it kept Adobe stuff ect. Lost MS Office. Had to re-install that. The original items are still on the computer somewhere but.....

  • Select name without special characters

    I have a table with names, some of which contain special characters('/','\','#','&'). I need to select the names columns with certain conditions.
    1. The name with these special characters should not be picked, esp. when another same name (without the special characters exists
    e.g: if I have 2 entries ABC& and ABC, I should select ABC
    2. If no entries are clear of this special characters, pick the last name.
    e.g: if I have 2 entries ABC& and ABC#, I should select ABC#.
    Please help me device the code for this.

    Hi,
    Try something like this ...
    select version from v$instance ;
    <br>
    VERSION
    10.1.0.3.0
    <br>
    1 row selected.
    <br>
    create table test_values ( id number, val varchar2(10) );
    <br>
    insert into test_values values ( 1, 'abc' );
    insert into test_values values ( 2, 'abc' );
    insert into test_values values ( 3, 'abc/' );
    insert into test_values values ( 4, 'abc\' );
    insert into test_values values ( 5, 'abc#' );
    insert into test_values values ( 6, 'def' );
    insert into test_values values ( 7, 'def' );
    insert into test_values values ( 8, '#ghi#' );
    insert into test_values values ( 9, '/ghi/' );
    insert into test_values values ( 10, null );
    <br>
    select id, val from test_values ;
    <br>
            ID VAL
             1 abc
             2 abc
             3 abc/
             4 abc\
             5 abc#
             6 def
             7 def
             8 #ghi#
             9 /ghi/
            10
    <br>
    10 rows selected.
    <br>
    select
      max(id) keep
        ( dense_rank last
          order by instr(standardized_val,'#') desc, id
        ) as target_id,
      max(val) keep
        ( dense_rank last
          order by instr(standardized_val,'#') desc, id
        ) as target_val
    from
      ( select id, val,
          translate( val, '/\#&', '####' ) standardized_val,
          translate( val, 'x/\#&', 'x' ) clean_val
        from test_values
      ) tv
    group by
      clean_val
    <br>
    TARGET_ID TARGET_VAL
             2 abc
             7 def
             9 /ghi/
            10
    <br>
    4 rows selected.Message was edited by: jfuda - added tags for formatting source

  • UserTransactions without JDBC?

    Hi!
    Is it possible to use UserTransactions without JDBC and EJBs.
    I tried this (with WebSphere 3.5):
    int i=1;
    utx.begin();
    i++;
    utx.rollback();
    System.out.println(i);
    But the rollback does not work.
    The output is 2 and not 1.
    Is there a possibility to do something like that?
    cu...
    Torsten

    Hi,
    A transaction in JTA only spans work done through javax.transaction.xa.XAResource instances.
    The rollback will only work for resources that are enlisted with the transaction.
    In fact, an instance of XAResource in a handle to a transactional context on some object. To make it work for your case, you would have to implement an object that encapsulates the i counter, and is able to return an XAResource that can be enlisted with the transaction.
    The rollback method would then restore the previous value of i.
    Making this work in a valid way would require logging the state of the object as well, since XAResources can be prepared (meaning that the work can still be rolled back, but needs to be recoverable after a crash).
    Best,
    Guy

  • Webpage using host name without domain

    Installed 10g successfully but when I try to naviagte the url is only using the computer host name without the domain. I keep getting the DNS_ERROR. If I manually append the domain in the webpage it works.
    Installed on Solaris 10.

    I doubt this has anything to do with Lion Server. it sounds more like the client settings.
    Did you add your domain to the list of search domains (System Preferences -> Network -> Advanced -> DNS).
    This list is the list of domains the client will search when looking up a unqualified hostname. Add your domain to this list.

  • Applescript and insert names without extension (Mail)

    Hi,
    my script does the following when i drop a video file on this app:
    1. transcode it to ogg
    2. copy the name and insert it in a newly created mail in the Subject and Message with "NameOfFile"
    It is nearly perfect but it copies the file extension in the new mail, too.
    How do i get the app to insert only the name without the Extension??
    Best Regards
    Lysard
    on open of droppedFiles
              tell application "Finder"
                        set NameOfFile to name of item (item 1 of droppedFiles as alias)
              end tell
              repeat with nextDroppedFile in droppedFiles
                        set videoname to POSIX path of nextDroppedFile
                        if videoname contains "." then
                                  set oldDelims to AppleScript's text item delimiters
                                  set AppleScript's text item delimiters to {"."}
                                  set videooutput to text 1 thru text item -2 of videoname
                                  set AppleScript's text item delimiters to oldDelims
                        end if
                        set SettingPfad to POSIX path of (path to me)
                        tell application "Terminal"
                                  do script ("ffmpeg2theora " & quoted form of videoname & " -f 30 -x 720 -y404 -V1500 -A 128 --two-pass -o " & quoted form of videooutput & "_XYZ.ogv")
                        end tell
                        tell application "Mail"
                                  set theSubject to "Anlieferung " & NameOfFile & " _XXX"
                                  set theContent to "Hallo,
    " & NameOfFile & " ist availible here:
    xxx
    BR
    ME"
                                  set theAddress to "[email protected]"
                                  set theSignatureName to "Signatur 1"
                                  set msg to make new outgoing message with properties {sender:"[email protected]", subject:theSubject, content:theContent, visible:true}
                                  tell msg to make new to recipient at end of every to recipient with properties {address:theAddress}
      --tell msg to make new attachment with properties {file name:theAttachmentFile as alias}
                                  set message signature of msg to signature theSignatureName
                        end tell
              end repeat
    end open

    There are a couple of points in your original script that should be addressed.
    One you are dropping files on the script and sending them out as mail messages but because you are setting the filename before you actually loop through the dropped files all mail messages will have the same filename. You should move
    tell application "Finder"
                        set NameOfFile to name of item (item 1 of droppedFiles as alias)
              end tell
    Inside the repeat to get the actual filename in each mail message.
    Then this
    if videoname contains "." then
                 set oldDelims to AppleScript's text item delimiters
                 set AppleScript's text item delimiters to {"."}
                 set videooutput to text 1 thru text item -2 of videoname
                 set AppleScript's text item delimiters to oldDelims
    end if
    While it works is defeating the whole point of setting the text item delimiter.
    Once you do
    set AppleScript's text item delimiters to {"."}
    then text item 1 of videoname is the filename and text item 2 is the extension ie:
    set videooutput to text item 1 of videoname
    will get the name of the file into videooutput
    In fact you could just use videooutput as the name in the mail message.
    regards

  • How to search ONLY in package names, without descriptions?

    Hello!
    I would like to know how I can search with pacman only in the package names, without searching descriptions?
    For example, searching for the rar package (pacman -Ss rar) gives me tons of results with hundreds of packages, where "library" occurs in the description.
    I have already read the pacman manual page, but I couldn't find anything suitable.
    Greets, Horst

    perl -e '$search = "rar";$output=`pacman -Ss $search`;while($output=~/^(\S.*?\Q$search\E.*?\n(?:\s.*\n)*)/mgi){print $1}'
    This does the normal "pacman -Ss whatever" search, but then it checks that the search term is in the package name. Just replace "rar" in "$search = "rar" with whatever you want to search for.
    I tried to make it work with grep using -P, but I still don't know how to make it case-insensitive then ("-i" doesn't seem to work with perl regexes). Here it is anyway though:
    pacman -Ss rar | grep -P "^\S.*?rar(?:.*|\n)*?(?=\n\S)"
    Aside from being case-sensitive, you also have to replace both instances of "rar" with your search term.
    Here's a script version that you can run from the command line:
    #!/usr/bin/perl
    use strict;
    use warnings;
    my $search = "@ARGV";
    my $output = '';
    open(my $pipe,'-|',"pacman -Ss $search") or die "Unable to create pipe to pacman: $!\n";
    while (defined(my $line=<$pipe>)){$output.=$line;}
    close $pipe;
    while($output=~/^(\S.*?\Q$search\E.*?\n(?:\s.*\n)*)/mgi){print $1};
    Save it as "search_pkgnames", make it executable, then invoke it with your search term: search_pkgnames rar
    Hope this helps.

  • MAC OSX 10.5.8 and 2TB Time Machine would not back up. Saw discussion  that suggested you change name without apostrophes etc. Went into Time Machine and did a manula backup without a name and it appears to be backing up now. Does this remove delete the o

    MAC OSX 10.5.8 and 2TB Time Machine would not back up. Saw discussion  that suggested you change name without apostrophes etc. Went into Time Machine and did a manula backup without a name and it appears to be backing up now. Does this remove delete the old backup's ?

    Does this remove delete the old backup's ?
    No, they are all just fine.

  • Can I change the Column Name without losing data and change the sequence

    Dear Experts,
    I want to change the column name without changing the sequence and dont want lose the data.

    Oracle Version : ?
    Example Based on 10g.
    SQL> conn scott/tiger
    Connected.
    SQL> create table col1 as select * from all_objects where rownum <= 100;
    Table created.
    SQL> alter table col1  add constraints col1_pk_objid primary key(object_id);
    Table altered.
    SQL> desc col1
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                 NOT NULL NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                            DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL> alter table col1 rename column object_id to object_no;
    Table altered.
    SQL> desc col1;
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_NO                                 NOT NULL NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                            DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL> column column_name format a30
      1  select column_name,constraint_name
      2  from user_cons_columns
      3  where table_name = 'COL1'
      4* and owner = 'SCOTT'
    COLUMN_NAME                    CONSTRAINT_NAME
    OBJECT_NO                      COL1_PK_OBJID
    SQL>
    also go through
    http://www.dizwell.com/prod/node/65
    Message was edited by:
    user52

Maybe you are looking for