Not able to append "/" with dbms_metadata.

Hi All,
I am using 11gr2 and need to generate ddl for objects grants . i order to do this , I am using dbms_metadata to generate it. I need to add "/" after each command , but it's only adding to last page of the grants. also, even the linsize has been set to 200, but the output is still wraps around before 200.
SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT', USERNAME) || '/' DDL
FROM DBA_USERS where username in (select grantee from dba_tab_privs) and username in ('user')
  GRANT SELECT ON "PACKAGING"."ASSOCIATED_COMPONENTS
_V" TO "AALKHALI"
  GRANT SELECT ON "PACKAGING"."ASSOCIATED_COMPONENTS2_V" TO
"AALKHALI"
  GRANT SELECT ON "PACKAGING"."ASSOCIATED_COMPONENTS3_V" TO "AALKHA
LI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_REPORT1_ALL_LOC_V" TO "AALKHALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_REPORT1_BYL
OC_V" TO "AALKHALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_MANIFEST_V" TO "A
ALKHALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_MANIFEST2_V" TO "AALKHALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_COMP_STDS_V"
TO "AALKHALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_STDDEFAULT_V" TO "AALK
HALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_STD_DISTCODE_V" TO "AALKHALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_STD_LOCATION
_V" TO "AALKHALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_STD_LIB_V" TO "AALK
HALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_STDSLIST_V" TO "AALKHALI"
  GRANT SELECT ON "PACKAGING"."STANDARDS_STDSLBLS_V" TO "
AALKHALI"Edited by: user11983993 on Jul 3, 2012 8:10 AM

Hi,
You have to use dbms_metadata.set_transform_param in order to specify the SQLTERMINATOR (either ; or /) before issuing the GET_DDL :System@my11g SQL>exec dbms_metadata.set_transform_param(dbms_metadata.SESSION_TRANSFORM,'SQLTERMINATOR',true);
PL/SQL procedure successfully completed.
System@my11g SQL>SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT', USERNAME) u_ddl
  2  FROM DBA_USERS where username in (select grantee from dba_tab_privs) and username in ('SCOTT');
U_DDL
  GRANT EXECUTE ON "SYS"."DBMS_SESSION" TO "SCOTT";
  GRANT EXECUTE ON "SYS"."DBMS_LOCK" TO "SCOTT";
  GRANT EXECUTE ON "SYS"."DBMS_ERRLOG" TO "SCOTT";
  GRANT EXECUTE ON "SYS"."DBMS_CRYPTO" TO "SCOTT";
  GRANT READ, WRITE ON DIRECTORY "FOLDER1" TO "SCOTT";
  GRANT READ, WRITE ON DIRECTORY "FOLDER2" TO "SCOTT";
  GRANT READ, WRITE ON DIRECTORY "FOLDER3" TO "SCOTT";
  GRANT EXECUTE ON "SYS"."TRACEME" TO "SCOTT";
  GRANT EXECUTE ON "SYS"."TRACEMEOFF" TO "SCOTT";
  GRANT EXECUTE ON "SYS"."REMOVE_FLARCH" TO "SCOTT";
  GRANT EXECUTE ON "SYSTEM"."REMOVE_FLARCH" TO "SCOTT";
  GRANT READ, WRITE ON DIRECTORY "SCOTTDIR" TO "SCOTT";

Similar Messages

  • Datareader is not able to connect with database-Urgent

    Hi All,
    All of a sudden the Datareader component in my ML experiment is not able to connect with database with the following error:
    [ModuleOutput] DllModuleHost Error: 1 : Program::Main encountered fatal exception: Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException: Error 0000: Internal error ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: The value's length for key 'password' exceeds it's limit of '128'.
    Module finished after a runtime of 00:00:00.2031339 with exit code -2
    Module failed due to negative exit code of -2
    It complains about the password being long-but the same credentials I have been using for the last 2 months and still able to use it to run sql queries on that same database using the management portal.
    It appears that Azure encrypts the password and that encrypted password is too long...just my guess after looking that the output.Inside Ml it just says as internal error
    Would appreciate if someone can point to the issue at the earliest...(There is a demo early next week)
    Subscription:Enterprise,
    LOCATION: East Asia
    Regards,
    Biswajit

    Hi,
    Please check this url:
    https://studio.azureml.net/Home/ViewWorkspace/bc85d4f81d2246c4b1430eb395229a3a?&hashSeg=#Workspaces/Experiments/Experiment/bc85d4f81d2246c4b1430eb395229a3a.f-id.11776ae4400f4c1aa9f58308c30810fa/ViewExperiment
    which is an experiment which I created doing save as of the experiment in which the data reader works.
    I stripped everything except the data reader and setup the rest of the components...I finally have to write the results back ,so also pulled a Writer component.
    Now,the data reader works fine..but the Writer fails:
    Error 0071: Incorrect username "acnadmin" or password is passed
    Strangely,its the same credentials set in the DataReader.
    Looks like all the DataInput/Output components created recently only have the problem.
    Once again,while the datareader in this case passes the password in plain text,the writer encrypts,hence fails.

  • I am not able to connect with Itunes Match. I constantly receive the message error 4010

    I am not able to connect with Itunes Match. I constantly receive the error 4010.

    I can run the general "Update iTunes Match" from the menu but cannot add individual tracks by right-clicking (control-clicking) on them the way I usually do. Then I get the 4010 error message.
    Based on other posts here, I can assume the problem is not just me.

  • I am not able to connect with another ipod via bluetooth can u pls help me

    i am not able to connect with another ipod via bluetooth can u pls help me

    Are yo trying to pair via an app that supports BT pairing?  If you are I would try:
    - Resetting the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    -Resetting network settings on the iPod: Settings>General>Reset>Reset Network Settings

  • BAPI not able to connect with Livecache

    Hello All,
       I am using "BAPI_PIRSRVAPS_GETLIST" .
       But not get pegging detail. When I debug it is not able to connect with livecache.
       How to use BAPI FM in Program, How to connect with livecache ?
       Anybody has sample ABAP program for this ?
    Thanks in Advance
    Amisha

    Hi All,
    When I try to use BAPI <b>BAPI_PIRSRVAPS_GETLIST</b> I am not getting pegging information, please help me.
    Thanks,
    Srinivasa.

  • Not able to connect with iTunes

    its has been 6 days already and i am not able to connect with itunes to purchase something.
    i have used visa and mastercard and i also have money credited to my account.
    please help!

    Hello FoxyNix
    Check out the steps below to troubleshoot you issue with connecting to the iTunes Store on your iPhone
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Troubleshoot issues on an iPhone, iPad, or iPod touch
    If you haven't been able to connect to the iTunes Store:
    Make sure your date, time, and time zone are correct in Settings > General > Date & Time. 
Note: Time Zone may list another city in your time zone.
    Make sure that your iOS software is up to date by tapping Settings > General > Software Update (iOS 5 or later) or connecting your iOS device to iTunes and clicking Check for Update on your device's Summary page.
    Check and verify that you're in range of a Wi-Fi router or base station. If you're on a device with cellular service, make sure that cellular data is turned on from Settings > General > Cellular.
Note: If connected to cellular data, larger items may not download. You may need to connect to Wi-Fi to download apps, videos, and podcasts.
    Make sure that you have an active Internet connection. You can check the user guide for your device for help with connecting to the Internet.
    Make sure that other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the Internet.
    Try resetting (turning off and then on again) your Wi-Fi router.
    If the issue persists, try troubleshooting your Wi-Fi networks and connections.
    Regards,
    -Norm G.

  • Not able to connect with Sql Server Database

    Hi,
    I'm not able to connect with Sql Server database.during making connection I'm getting the following error:
    "Status : Failure -I/O Error: SSO Failed: Native SSPI library not loaded. Check the java.library.path system property."
    Please help
    Regards,
    Neeraj Goel

    Hi,
    I'm using Sql Server 2000.
    I downloaded the driver from the given site and still having the same problem. Do I need to copy the driver file in some specific folder.
    Regards,
    Neeraj Goel

  • My iphone is not charging or showing in my computer. but its getting charged via wall apple charger.. Not able to connect with itunes.. please help.... :(

    My iphone is not charging or showing in my computer. but its getting charged via wall apple charger.. Not able to connect with itunes.. please help....

    No it doesn't. Sometimes it make a sound that it should when connecting but that is it. Never actually charges or syncs. And it is a brand new cord.

  • HT4623 I have an IPhone4 and is updated with version 6.1.3 and I am not able to connect with face time calls. I have checked the date ant time. I used to be able to use face time with no problem. since the late os upgrace I have not been able to connect w

    I have an IPhone4 and is updated with version 6.1.3 and I am not able to connect with face time calls. I have checked the date ant time. I used to be able to use face time with no problem. Since the late os upgrace I have not been able to connect with face time.

    Read http://support.apple.com/kb/ts3367

  • I have iphone 6 plus and not able to connect with my Nokia bluetooth device

    not able to connect with bluetooth devices

    iPhone only does limited forms of bluetooth connections, such as with speakers.
    You cannot transfer files from an iPhone to a Nokia phone using bluetooth.
    What type of Nokia device are trying to connect with? Is the Nokia in pairing mode?
    What exactly are you attempting to do?

  • I am not able to communicate with my instruments

    Hello,
    I am a graduate student in India. I
    am using NI PCI-GPIB card, which we bought nearly one year back. I am using
    LabVIEW 6i. For last two days I am not able to communicate with my
    instruments (Keithley DMM 196, Keithley current source 220, Lakshore
    temperature controller 93C).
    1. I started NI488.2 troubleshooting wizard. It says NI488.2 software
    presence verified, GPIB hardware presence verified,GPIB interfaces
    sequentially varified. This means Card is alright?
    2. I started MAX measurement and automation explorer. It lists GPIB0
    (PCI-GPIB) under 'devices and interfaces' folder. After selecting this, If
    I click at 'scan for instruments', 'Instruments not found' message
    appears.
    3. You may say that instru
    ments had problem. But the same instruments are
    working fine with another system with other card.
    4. I agin reinstalled PCI GPIB 488.2 driver from the CD. Now It is listing
    three instuments out of four. But the GPIB address for these instruments
    are
    not same as actual address. It also says instrument didn't reply for *IDN?
    query.
    5. Everything was working alright, this problem arose few days back
    suddenly.
    please help me

    Dear sir,
    Really something surprising. My instument is 'LakeShore DRC-93C'
    temperature controller. Probably bought around 7-8 years back.
    Here is the actual GPIB add & address read by MAX and correponding
    three NI-SPY log.
    actual GPIB add*****address read by MAX*****Max Capture(attached files)
    25***** 9*****capture_1
    21***** 5*****no file attached
    20***** 4*****capture_2
    17***** 1*****no file attached
    10***** instrument not found****capture_3
    7*****instrument not found*****no file attached
    for first four cases MAX showed 'instrument did not reply to *IDN? query?
    Same thing happened when I connected an Keithely Current Source.
    (only one instrument is connected,)
    actual GPIB add*****address read by MAX
    8*****instrument not found
    17***** 1
    25***** 9
    This means MAX is reading GPIB number 16 less than actual Number? Then I tried
    to write command at both GPIB address(actual and read by MAX) but both didn't work?
    What should I do next?
    with best regards
    Ram Shanker
    Attachments:
    Capture_1.spy ‏23 KB
    Capture_2.spy ‏23 KB
    Capture_3.spy ‏13 KB

  • On my Iphone, i'm not able to purchase with itunes from the game clash of clans! I did it the first time, it worked, but now it wont work and says : contact support.

    i'm not able to purchase with itunes from the game clash of clans! I did it the first time, it worked, but now it wont work and says : contact support.

    What they mean is iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html

  • Ipod is not able to snyc with laptop. ipod is locked to snyc with itunes, not able to.

    ipod is not able to snyc with laptop. ipod is locked to snyc with itunes. the ipod is not snycing with laptop.

    Please explain.
    Your post make little sense.
    You connect iphone to your comptuer and open itunes.  What happens?
    You try to sync?  What happens?
    Any info about your issue?

  • After an recent OS7 update my iPad2 requested a restore which I did, at the end my iPad jumped into "communicating with iTune" but it never communicates. I restored 3 time alreaady and I am not able to communicate with iTune to be able to use my iPad

    After an recent OS7 update my iPad2 requested a restore which I did, at the end my iPad jumped into "communicating with iTune" but it never communicates. I restored 3 time alreaady and I am not able to communicate with iTune to be able to use my iPad which is my working tool.
    What should I do?

    Communicate with iTunes? What does this mean? Tell us what you are seeing on your screen and what you then try to do?

  • HT201441 after erasing data I dont know apple password id because not able to contact with original owner ihave taken second hand now I am not able to use iphone so what I should do and I am having phone iphone 4s

    I have reset my account and I am the second owner of the iphone 4s and now i am not able to contact with first owner for apple id and password so what I do now in order to use my iphone

    This is really a problem, and unfortunately you won't be able to do anything, if you cannot contact the previous owner. (See also: https://support.apple.com/kb/TS4515)

Maybe you are looking for

  • Why won't the Powermac G5 accept a cloned SSHD

    Copied the operating system from my 5400 rpm HD and put it on a SSHD. Although it was perfectly cloned by the software, the computer sees it but won't start with the software on the SSHD. It just reverts to the original harddrive . If I take the orig

  • If statement is not giving desired result..

    i want to connct a java program to sql database only if a condition is met.. n im using if statemnt for this.. if(condition) try Class.forName(driver); but this program is connecting without meeting the condition... what could be wrong?

  • ITunes will not quit - even "Force Quit"

    When I installed the 8.0.1 patch on my iMac, I noticed that iTunes quit working correctly after importing some new tracks. It would not quit. I had to force quit but then it would not open correctly the next time and it would not quit. From that poin

  • Still trying to find a good way of rotating an image for GUI

    All my efforts have rendered rotated images which have suffered greatly in quality, does anyone have any ideas?

  • Help, How to view the error log of oracle Job

    Hi all, I created a job in my database, which clears the archivelog. After the job is executed, it occurs error.Such as : RMAN清理归档日志 1 问题 2010-3-19 下午03时11分00秒 GMT+08:00 PTDB 数据库实例 SYSTEM RMAN 脚本 How to view the error log of oracle Job? Thank you. Er