Need a Space  in Pl/sql Output

Hi ,
Below is my Script for Dropping and Creating the Schema in Oracle 11g Database R1 on Windows 2003 Server R2 SP2
DECLARE
acount NUMBER := 0;
host_name VARCHAR2 (100);
query1 VARCHAR2 (1000)
:= 'CREATE USER &Client_Name PROFILE DEFAULT IDENTIFIED BY &Client_Name DEFAULT TABLESPACE &Client_Name TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK';
query2 VARCHAR2 (1000)
:= 'ALTER USER &Client_Name QUOTA UNLIMITED ON &Client_Name';
BEGIN
SELECT 1
INTO acount
FROM dba_users
WHERE username = '&Client_Name';
SELECT host_name
INTO host_name
FROM v$instance;
IF acount >= 1 THEN
EXECUTE IMMEDIATE 'DROP USER &Client_Name CASCADE';
DBMS_OUTPUT.put_line ('Mentioned Schema_Name is Dropped in '||host_name||' Server');
EXECUTE IMMEDIATE query1;
EXECUTE IMMEDIATE query2;
DBMS_OUTPUT.put_line ('New Schema is Created in '||host_name||' Server');
END IF;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
SELECT host_name INTO host_name FROM v$instance;
EXECUTE IMMEDIATE query1;
EXECUTE IMMEDIATE query2;
DBMS_OUTPUT.put_line ('New Schema is Created in '||HOST_NAME||' Server');
END;
Output is
Mentioned Schema_Name is Dropped in DEV11GAS Server
New Schema is Created in DEV11GAS Server
But i need the Output Like below
Mentioned Schema_Name is Dropped in DEV11GAS Server
New Schema is Created in DEV11GAS Server
Just Need a Space/gap between the two line..... Please Advice
Thanks
Shan

Your post is a bit misleading. You have not posted your SERVEROUTPUT commands.
See the below examples.
SQL> show serverout
serveroutput OFF
SQL> SET SERVEROUTPUT ON
SQL> begin
  2  dbms_output.put_line('Hello');
  3  dbms_output.new_line;
  4  dbms_output.put_line('World');
  5  end;
  6  /
Hello
World
PL/SQL procedure successfully completed.
SQL> SET SERVEROUTPUT ON FORMAT WRAPPED
SQL> begin
  2  dbms_output.put_line('Hello');
  3  dbms_output.new_line;
  4  dbms_output.put_line('World');
  5  end;
  6  /
Hello
World
PL/SQL procedure successfully completed.
SQL>the new_line procedure is not working because of your SQL *PLUS settings.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • I am getting a warning need more space on my disk. I have checked the Console and there have been 4000 thousand messages in my system log in the last 2 days. I have emptied as many files as possible.

    Hi
    I am getting a warning on opening my mac saying I need more space as my setup disk is full.  I have emptied many files as well as my Trash.  I am planning to get an external drive for my photos, but it has been suggested that I check Console and under the system log the following message (of which they say 4000 messages have been logged in 2 days) '06/06/2014 16:08:23.341 com.apple.dynamic_pager: dynamic_pager: Need more space on the disk to enable swapping'.  This is a copy of one of the items.  It is from the system log.  I really do not think I have enough files to warrant this warning, with the exception of photos.  My storage shows 143 MB free out of 120.47. Thanks for any help.

    First off, no MacBook Air can run 10.3 or earlier.
    Secondly, are you sure you only have 143MB of storage free?  That's seriously low.  With MacBook Airs of 120 GB hard drives, or even 140 GB which is often the case when it says out of 120, you shouldn't allow your free space to go down below 20 GB.  MB is 1024 fold less than a GB.  So if you really have 143MB free on a MacBook Air, you are long past the minimum space you should be keeping it at, and need to start clearing a lot of space now*:
    http://www.macmaps.com/diskfull.html
    I'm asking this thread be moved to the MacBook Air forum,a as we can't say for certain what you have when you post in the 10.3 or earlier forum.

  • I need 3 dimentional charts as an output in xml publisher report

    Hi,
    As off now chrarts r in 2 dimension But I need 3 dimentional charts as an output in xml publisher report, please any one tel me wheather is possible or not.....?? if possible please tell me how to develop that report....

    Not sure you are on the right forum...

  • Do I still need to run the catupgrd.sql??

    Hi
    I would like if I install the Oracle in the following procedure, do I still need to run the catupgrd.sql.
    1. Install Oracle 10.2.0.1 software only( i.e. without create any database instance)
    2. Install Oracle 10.2.0.2 patch
    3. Create an Oracle Instance using DBCA
    Do I still need to run the catupgrd.sql for the newly created database instance?
    Denis

    Do I still need to run the catupgrd.sql for the newly created database instance?No, you don't. Because database was created on already patched software.

  • Disk Utility - Partition map needs repair because a data partition needs loader space.

    I just finished setting up both my OSX and Windows installs from scratch after fitting an SSD, which in-turn was right before my logic board died and Apple replaced it, now it looks like I have some sort of hard drive issue brewing.
    This was my plan for the SSD, and how it currently displays in Disk Utility although that wasn't the case earlier:
    And in Terminal:
    My intention was to have two boot partitions for each OS, 'Macintosh HD' and 'Win 7 Pro' and a third shared data partition 'Projects' on the SSD, which I made in Drive Genius after installing Boot Camp. I don't want Macintosh HD accessible from Windows because I'll be using Paragon HFS+ or MacDrive to give write access and don't want OSs stomping on other OSs turf, hence needing three partitions. Everything looked fine until I just checked Disk Management under windows and realised it couldn't see the Projects volume. Even though it's fine in OS X, it was just marked black/unallocated space.
    So I booted back into OSX, all my files look fine so I ran Disk Utility and the Partition tab looked really odd - unfortunately I didn't get a screenshot. All volumes reported their size correctly but visually, Macintosh HD took up most of the drive. I could see 'Windows 7 Pro' under this, but the Partition Layout section had a scrollbar, which if I scrolled down showed 'Projects' squished into a tiny gap at the bottom. I ran a Verify, which reported no problems, and at some time since the Partition Layout has reverted to how it should look (as in the screenshot above), with 'Projects' book-ended by "Macintosh HD' and 'Windows 7 Pro'.
    Now when I run a Verify on Macintosh HD or Projects volumes, it says there's no problem, but if I run one on the drive, I get this message:
    Volume Macintosh HD on disk0s2 has 0 bytes of trailing loader space and it needs 134217728 bytes
    Problems were found with the partition map which might prevent booting
    Error: Partition map needs repair because a data partition needs loader space.
    I've only managed to find one other mention of this error here, but the fix is not relevant to me because I don't have Sophos installed. I've tried Single User/Safe Mode but it just boots into normal mode, so I can't do a fsck -fy.
    ** /dev/rdisk0s2 (NO WRITE)
    Can't open /dev/rdisk0s2: Permission denied
    That value in bytes is exactly 128mb, so I suspect the problem lies with one of the invisible partitions that show up in iPartition and Disk Management under Windows, but not in Disk Utility. I have backups and I suspect the root of the problem is partitioning in iPartition after installing Boot Camp, but I've never had issues with this approach in the past so I'm wary of just giving up and reinstalling Windows again will be massive hassle because I no longer have a SuperDrive and last time it refused to install from USB.
    Anyone have any idea what's going on? It seems like the sort of issue Disk Utility should just handle, at least in Recovery mode, but it's not playing ball. It also doesn't seem like a massive problem since my files all look fine and performance is OK, so I'm reluctant to do anything major.
    I'll update with a shot of the drive in Disk Management from Windows in a few minutes, in case that sheds light on anything. Thanks!

    Similar issue here. I manually partitioned my hard disk for triple boot (using Gparted on Linux), then everything was just fine until I ran bootcamp, to do something as simple as create a boot USB.
    I get the same error as a result and have to work my way into booting, by resorting first to a Linux live USB, then restarting from the live USB, to finally reach my rEFInd boot manager, or whichever boot manager should be initialized at startup.
    I suppose that the cause in my case is that some operation "scratched" the protective MBR. See this:
    http://www.mactech.com/articles/mactech/Vol.23/23.03/APMtoGPT/index.html
    I am hoping to fix it using an external Yosemite installation media: see this guide -
    http://www.macworld.com/article/2367748/how-to-make-a-bootable-os-x-10-10-yosemi te-install-drive.html
    And as a last resort to reinstall.
    I'll admit I am negatively surprised. I need this computer for professional reasons, and for the sake of "preserving the integrity of OSX", measures defined by Apple instead tend to make partitions far easier to damage. And this problem seems to affect a number of users.
    As for what I have to go through to fix it: a 5GB download, during which I have to register my credit card to the Apple Store. "Pay first, get your free software next."
    IF Disk Utility can fix it, from the external media, then fair enough. The hassle is unpleasant but it files as "a choice".
    Otherwise you can file it safely under software design calamity.

  • Need more space! Is external hard drive an option??

    New to atv. Bought 40g model. Now going on vacation and need more space for more stuff. Can external hard drive be hooked up via USB and accessed through atv??

    Can external hard drive be hooked up via USB and accessed through atv?
    Not without voiding the warranty. No publicly available device is officially supported by that USB port.
    (39095)

  • Oracle 10.2 on AIX -- need to connect to remote SQL server by dblink

    oracle 10.2 on AIX -- need to connect to remote SQL server by dblink
    i didn't see a odbc diectory in our oracle home path. how do i know odbc driver is installed in the oracle on our AIX server.
    If it is there, do i just need to modify the odbc.ini and then the inithsodbc.ora, linster.ora, tnsnammes.ora files, or am I missing something
    Appreciate your response
    Edited by: user10876711 on May 12, 2011 9:18 AM
    Edited by: user10876711 on May 12, 2011 9:18 AM

    when you want to connect from Oracle to a SQl Server you need the Oracle Gateway (HSODBC or even better Dg4ODBC) and a FOREIGN ODBC DRIVER for your foreign database - a SQL Server ODBC driver. You have to get this driver from a 3rd party vendor - Oracle does not offer any foreign ODBC drivers.
    So before being able to use DG4ODBC/HSODBC you need to install from a 3rd paryt vendor a SQL Server ODBC driver. Commercial vendrs are for example Data Direct, Openlink or Easysoft.
    On Unix ODBC drivers commonly also require a driver manager. If the ODBC driver vendor does not ship one with the ODBC driver you can get it from www.unixodbc.org

  • Need to download the ALV blocked output in to excel sheet

    I have a requirement where there is a need to download the Alv block output to excel sheet. when i click on excel button which is on output only header block data is coming in excel sheet.but i need both header block and item block data into excel.

    Hi,
    create a pushbutton on the toolbar,
    whenever user clicks the pushbutton,
    call the fm gui_download for 2 times
    for the first time,
    append = ' ',
    and for second time.
    append = 'X'.
    check this thread.
    Re: How to download multiple ALV Container data on a screen to a single Excel?
    Regards.
    R K.

  • NEED MORE SPACE ON D DRIVE

    NEED MORE SPACE  ON d DRIVE

    Hi, Is it the Recovery partition ? Please do not touch to it, do not save anything to it. Regards.

  • Since installing mavericks my WD time machine doesn't work, it keeps insisting it needs more space? This wasn't an issue an hour earlier?

    Since installing mavericks my WD time machine doesn't work, it keeps insisting it needs more space? This wasn't an issue an hour earlier?
    Id also like to know if Powerpc software will be supported? I have C&C Generals on disc but it doesnt run now mavericks is installed?!
    Annoying!

    Regarding time machine, it probably took a full backup after you put mavericks on. To investigate, open Console, select "All Messages" and type "backup" (without the quotes). It will then only show you backup-related messages. If you're not sure how to read those, copy them and paste them into a reply here; we can investigate the situation.
    I don't know anything about your PPC software issue, sorry.

  • I have an 8gb iPhone 4 and i need more space, is there a way to get more space rather then buying a whole new phone?

    I have an 8gb iPhone 4 and i need more space, is there a way to get more space rather then buying a whole new phone?

    No. Sell the 8gb and buy one with more capacity.

  • My phone needs more space. I have lots of pictures on it and on my iPad. I recently purchased a MacBook and now my pics are on there. If I delete my camera roll from my phone, might I lose them?

    I Need more space But if I delete my pics from my phone, how do I know that they won't reappear after the backup, or, much worse, be deleted from my MacBook and iPad after the Cloud backup?

    1. Connect the phone to iTunes and do a backup (better safe than sorry)
    2. Open iPhoto on the Air, and import all your photos from the phone
    3. Now you can delete the photos on the phone and they're safe in iPhoto
    4. If you want to put them (or some of them) back on the phone, you can put the ones you want on the phone into an album in iPhoto, then sync that album back to the phone
    Hope that all makes sense

  • OS X lion says that i need more space till i can download the app what should i do?

    OS X Lion says that I need more space till I can download OS X Lion in the App Store, what should I do?

    More hard drive space or more RAM?  Lion will need at least 10gb of free space on the hard drive and a minimum of 2gb of RAM.

  • Reg : print spaces in pl/sql block

    Hi friends,
    How can i print spaces in pl/sql block .
    Eg :
    1
    'onespace '1
    '2 spaces'1
    '3spaces'1
    etc..
    Thanks in Advance,
    Chinnu.
    Edited by: chinnu on Jul 8, 2009 10:55 PM
    Edited by: chinnu on Jul 8, 2009 10:56 PM

    Can you please elaborate more on your requirement?
    What data is in your tables? What outcome do you expect?
    Use around your code to preserve formatting..
    Edited by: Alex Nuijten on Jul 9, 2009 8:00 AM                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I need to get SSIS Data profiler output in Excel.

    Hi,
    I need to get SSIS Data profiler output in Excel. Tried importing XML generated by SSIS Profiler in Excel but data is getting lost. Can anybody please help on this.
    Thanks,
    Manoj

    Hi Manoj,
    The Data Profiling task outputs the selected profiles into XML file. We can specify the result to any extensions of file, the generated file is valid for the built-in Profile Viewer but invalid for other file viewer applications. So when we specify the output
    to Excel file, we can export the excel file and make analyzing without any problems through the Profile Viewer. But when we use Microsoft Excel open it, it says ‘The file format and extension of’’ don’t match’, then it needs us select one option to open the
    XML file. So we cannot directly export Data Profiling task outputs to Excel file.
    If we still want to export Data profiling task outputs to Excel, we can use the XML Source to extract data from the generated XML file, and then export it to Excel destination in a Data Flow Task.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • OAS config

    Hi all Sorry if this isn't IAS but here goes ! I did an install of OAS 4.0.8.1 which went OK - the node manager and sample listeners started OK after install. However, upon restarting my machine, I can't get OAS fully started. I have all the environm

  • Why in Firefox 35 the URL sequence \] is being transformed in "%"5D?

    We have an application that receives an enconding URL having the ] char. On Firefox 35 it is encoded into "%"5D which is causing us trouble decoding the url. Can you provide details on why this modification was held? Thanks and regards, Tito

  • Cost Centers viewing restriction

    Hi All, How to restrict certain users should be able to post the transactions to certain cost centers but should not view the cost center information throught Cost Center drill reports and from other FI reports. Regards, Likhit

  • Comuunication channelparameters

    helo. i have done a file to file scenario. the following is my sample file HEADER|I10000004728|20070206152202 IN 00 1632 125000193375 000 kHOZAG 86 Juta street 5th Floor - phakama 0114070087 IN 00 1632 125000193375 010 en 1000111 1000222 1200 2400 20

  • Cannot adjust bass and treble settings.

    I just installed the SoundBlaster Li've 24-bit sound card specifically so I could adjust the bass and treble settings under Advanced Options in speaker settings for a new job, but the bass and treble settings are greyed out. Can you tell me why this