Length overflow - the line but does not see why!

Hi all

I have a script, plsql, I'm working on the script RMAN to copy image to the data files, controlfiles and archive recovery logs.

When I run the script, I get an error (see below), but I don't see where the lines in the output are greater than 255 characters.

If I divide the script into two separate loops they don't work very well, but together, no chance.

Error message:

declare
*
ERROR on line 1:
ORA-20000: ORU-10028: line length overflow, the limit of 255 characters per line
ORA-06512: at "SYS." DBMS_OUTPUT", line 35
ORA-06512: at "SYS." DBMS_OUTPUT", line 84
ORA-06512: at line 61 level

Script:

Set serveroutput on encapsulated format
Set feedback off
set linesize 115

coil arch_copy.rcv

declare

BOOLEAN firsttime;

cursor df is
Select
file No.,
substr(Name,29,50) name
Of
v$ datafile;
CF cursor is
Select
substr(Name,27,50) name
Of
v$ controlfile;
Al cursor is
Select
substr(a.Name,32,50) name,
B.SID road,
a.Status
Of
v$ archived_log a,.
v$ database d
where
a.dest_id = 1
and
a.Archived = 'YES '.
and
a.completion_time > sysdate-1
and
B.SID not like '% imagecopy % '.
and
a.activation # d.activation = #.
and
a.Status = "A";

BEGIN
DBMS_OUTPUT. ENABLE (2000);
DBMS_OUTPUT. Put_line ('run');
DBMS_OUTPUT. PUT_LINE('{');
DBMS_OUTPUT. PUT_LINE (' ' STOP IMMEDIATELY ');
DBMS_OUTPUT. PUT_LINE ('STARTUP MOUNT');
DBMS_OUTPUT. PUT_LINE ('COPY');
for dfbkup in df
loop
dbms_output.put_line (' DATAFILE ' | dfbkup.file #|)
' TO ''' || ' / u20/oraflash/ORCL1/imagecopy/datafile /' | dfbkup.name | " «, ») ;
end loop;
for cfbkup in CF
loop
dbms_output.put (' CURRENT CONTROLFILE ' |) ' TO ''' || ' / u20/oraflash/ORCL1/imagecopy/controlfile /' |
cfbkup.name | " ') ;
end loop;
Firsttime: = true;
for albkup in al
loop
in case contrary firsttime
then
dbms_output.put_line(',');
end if;
dbms_output.put (' ARCHIVELOG "' | albkup.path |) ''' TO ''' ||
' / u20/oraflash/ORCL1/imagecopy/archivelog /' |
albkup.name | " ') ;
Firsttime: = false;
end loop;
DBMS_OUTPUT. PUT_LINE(';');
DBMS_OUTPUT. PUT_LINE ("ALTER DATABASE OPEN ;"); ")
DBMS_OUTPUT. PUT_LINE('}');
end;
/

spool off

set linesize 80
Set of feedback on
Set serveroutput off

What is

SQL> declare
  2     cursor al
  3     is
  4     select 'x' path
  5          , 'y' name
  6          , count(*) over () cnt
  7       from all_objects
  8      where rownum <= 10;
  9  begin
 10     for albkup in al
 11     loop
 12        dbms_output.put_line(' ARCHIVELOG ''' || albkup.path || ''' TO ''' ||
 13           '/u20/oraflash/ORCL1/imagecopy/archivelog/' ||
 14           albkup.name ||''''||case when al%rowcount = albkup.cnt then ';' else ',' end );
 15     end loop;
 16  end;
 17  /
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y',
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y',
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y',
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y',
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y',
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y',
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y',
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y',
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y',
 ARCHIVELOG 'x' TO '/u20/oraflash/ORCL1/imagecopy/archivelog/y';

PL/SQL procedure successfully completed.

Tags: Database

Similar Questions

  • I put the password in the bios but does not understand why my key board won't type help

    Hi, can help them,

    I put a bios password on my pc which was just okay.
    now when I turn on pc I can't type the password as unusable key board.
    I understand reading the forum there is a rider?
    no idea how I can find a rider that is and what I need to do to use it.
    Thanks for any help that may be available.
    Best regards, nigel.

    Try the steps in the atricle below

    http://www.computerhope.com/issues/ch000235.htm

  • Connected to but the Airport utility does not see the time capsules

    Hi, I have several time capsules.

    I can connect to the web, but the airport utility does not see the time capsules.  I tried to restart the time capsules, router, computer, but I still don't see any of the devices on the network.

    What now?

    Have you tried the airport utility in the iOS version... Download on the App or iTunes store and load... Works better than the Mac version.

    Other than what Mac running what OS do you use?

    This modem you have and how is the installation of TC on the network.

  • my flash reads the xml, but does not include the php tag...

    my flash reads the xml, but does not include the tag php. I want to read my xml dynamically, Please help me.

    Code:

    Stop();

    function randomOrder (targetArray)

    {

    var _loc2 = targetArray.length;

    var _loc3 = [];

    for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)

    {

    _loc3 [_loc1] = _loc1;

    } / / end of for

    var _loc4 = [];

    for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)

    {

    _loc4 [_loc1] _loc3.splice = (Math.floor (Math.random () * _loc3.length), 1);

    } / / end of for

    var _loc5 = [];

    for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)

    {

    _loc5 [_loc1] = targetArray [_loc4 [_loc1]];

    } / / end of for

    return (_loc5);

    } / / End of the function

    var randomNUM = '? '. n ="+ random (9999);

    _root. LAN = 1;

    var homehead;

    HomeLink var;

    var homelinkwindow;

    var homebg;

    var homeflash;

    lamp var = Array();

    promo var = Array();

    var promobottom = Array();

    var headimg = Array();

    f_xmlwork2 = new XML();

    f_xmlwork2.ignoreWhite = true;

    f_xmlwork2. Load ("banner.php");

    f_xmlwork2. OnLoad = {function (success)}

    If (success) {}

    trace ("XML loaded!');

    f_xmlItemx2 = parseInt(this.firstChild.childNodes[0].firstChild);

    f_totalx2 = f_xmlItemx2.length;

    trace (f_totalx2);

    var _loc12 = 0;

    declarar a fundo imagem

    homebg = this.firstChild.childNodes [0].firstChild.nodeValue;

    f_headimg = this.childNodes [1];

    for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++ _loc2) {}

    Juju = f_headimg.childNodes [_loc2];

    JJ = headimg.push ({headimg: f_headimg.childNodes [_loc2].attributes.headimg, bgimg: f_headimg.childNodes [_loc2].attributes.bgimg, msgimg: f_headimg.childNodes [_loc2].attributes.msgimg, leftthrow: f_headimg.childNodes [_loc2].attributes.leftthrow, rightthrow: f_headimg.childNodes [_loc2].attributes.rightthrow});

    }

    end for

    allpromo = this.childNodes [2];

    jjpromo = allpromo.childNodes;

    for (var _loc2 = 0; _loc2 < allpromo.childNodes.length; ++ _loc2)

    {

    trace (jjpromo, [_loc2],.attributes.title);

    JJ = promo.push ({img:. attributes.img jjpromo [_loc2], title: jjpromo [_loc2].attributes.title, url: jjpromo [_loc2].attributes.url, window: jjpromo [_loc2].attributes.window, info: jjpromo [_loc2] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue});

    }

    end of for

    allpromobottom = this.childNodes [3];

    jjpromobottom = allpromobottom.childNodes;

    for (var _loc2 = 0; _loc2 < allpromobottom.childNodes.length; ++ _loc2)

    {

    trace (jjpromo, [_loc2],.attributes.title);

    JJ = promobottom.push ({url: jjpromobottom [_loc2].attributes.url, window: jjpromobottom [_loc2].attributes.window, info: jjpromobottom [_loc2] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue});

    } / / end of for

    If (f_xmlwork2.loaded is true)

    {

    headimg = randomOrder (headimg);

    for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++ _loc2)

    {

    trace (headimg, [_loc2], .headimg);

    } / / end of for

    play ();

    } / / end if

    }

    }

    trace (f_xmlwork2);

    Stop();

    PHP code:

    <?

    $link = mysql_connect("localhost","rnpac_eco","123");

    @mysql_select_db ("rnpac");

    $dir = "' banner /"; "

    Dir1 $= "" products/img_pro / ";"

    Dir2 $= "" universo/activities / ";"

    $sql = ' SELECT tbl_produto.id_produto, tbl_produto.produto, tbl_produto.legenda, tbl_produto.detalhe, tbl_produto.preco, tbl_produto.produto_cat_id, tbl_detalhe_produto.proprietario, tbl_detalhe_produto.local, tbl_detalhe_produto.qualidade, tbl_detalhe_produto.alcool, tbl_detalhe_produto.acidez, tbl_detalhe_produto.ph, tbl_detalhe_produto.informacao, tbl_detalhe_produto.gestor, tbl_detalhe_produto.condicionamento, tbl_detalhe_produto.detalhe_t, tbl_detalhe_produto.interesse, tbl_detalhe_produto.transporte, tbl_detalhe_produto.produto_id, tbl_imagem_produto.id_imagem tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6

    OF tbl_cat_produto, tbl_produto, tbl_detalhe_produto, tbl_imagem_produto WHERE tbl_produto.id_produto = tbl_detalhe_produto.produto_id AND tbl_produto.id_produto = tbl_imagem_produto.produto_id ORDER OF RAND()';

    $resultado = mysql_query ($sql)

    or die ("Nao faith possible realize a consulta.');

    $row1 = mysql_fetch_array ($resultado);

    $sql = "SELECT tbl_sub_universo.id_subuniverso, tbl_sub_universo.subuniverso, tbl_sub_universo.universo_id, tbl_actividade.id_actividade, tbl_actividade.entidade, tbl_actividade.legenda, tbl_actividade.subuniverso_id, tbl_actividade.det, tbl_actividade.preco, tbl_actividade.data, tbl_detalhe_actividade.actividade_id, tbl_detalhe_actividade.periodo, tbl_detalhe_actividade.descricao, tbl_detalhe_actividade.programa, tbl_detalhe_actividade.informacoes, tbl_detalhe_actividade.actividades, tbl_detalhe_actividade.localizacao, tbl_detalhe_actividade.locais, tbl_detalhe_actividade.servicos, tbl_imagem_produto.id_imagem. tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6, tbl_sub_universo tbl_imagem_produto.actividade_id, tbl_actividade, tbl_detalhe_actividade, tbl_imagem_produto WHERE the tbl_actividade.id_actividade = tbl_imagem_produto.actividade_id AND tbl_actividade.id_actividade = tbl_detalhe_actividade.actividade_id ORDER OF RAND() ';

    $resultado = mysql_query ($sql)

    or die ("Nao faith possible realize a consulta.');

    $row2 = mysql_fetch_array ($resultado);

    ' $query ='SELECT * FROM tbl_banner ORDER OF RAND() ';

    $resultado = mysql_query ($query);

    echo "<?" XML version=\"1.0\"? " >

    < home_left_headline >

    < bgimg > '. $dir2. ". $row1 ['imagem1'].' < / bgimg >

    < / home_left_headline >

    < home_flash > ';

    While ($row = {mysql_fetch_array ($resultado))}

    "" echo "< swf headimg =" ' bgimg = "" msgimg = "" leftthrow = "" rightthrow = "" > < / swf > '; "

    }

    echo "< / home_flash > ';"

    echo "< promotop >

    "< img class =" "title =" "" url = "" > <! " [CDATA []] > < / promo >

    "< img class =" "title =" "" url = "" > <! " [CDATA []] > < / promo >

    < / promotop > ';

    mysql_close ($Link);

    you would not see this trace php if your php has been setup correctly.  Upload your files and repeat the test.

  • MY PHONE SCREEN IS BLACK, PHONE WILL RING AND ICAN HEAR THROUGH THE MESSAGES BUT CAN NOT SEE ANYTHING AT ALL

    MY PHONE SCREEN IS BLACK, PHONE WILL RING AND ICAN HEAR THROUGH THE MESSAGES BUT CAN NOT SEE ANYTHING AT ALL

    Try this restart your iPhone, iPad or iPod touch - Apple Support

    If this does not work, it may be a hardware problem.

    Hope this helps, good luck to you.

  • Re: Deskjet 3070 - replaced the cartridges but does not now print!

    I have the same problem with my printer Officejet 6700 Premium. I just replaced all the cartridges with HP new ones. The printer is now going through the motions but does not print blank pages. This happens for all what I am trying to print including Diagnostics pages. The printer is a little older a year is not under warranty. Any help would be greatly appreciated!

    Hello twoshirts,

    I saw your other threads, and I understand that you have completed all the procedures listed here troubleshooting: printer does not print black ink or color of ink or prints blank Pages without success.

    I would like you to follow the steps below:

    1. reset of the printer, please make sure that you plug the printer directly into the wall, do not use a surge protector or power bar, they can cause the printer is in an error state and lose features of base over time.

    2 a 'cartridge problem', "Ink cartridge failed" or not "compatible ink cartridges" Error Message appears on the all-in-one, I know you did the cleaning steps, but, if you please, reinstall the cartridges and perform all THE steps listed

    3. now go ahead and run HP print and Scan Doctor- it has been designed to provide users with HP and features troubleshooting fix needed to solve many common problems experienced with HP print and scan the products related to Windows computers.

    I understand that you are not able to print diagnostics from the menu on the front panel as well, but want to see if the PSDR detects all conflicts in the software or drivers.

    Please let me know the results.

    Thank you

  • I have already uninstall the program but does not control panal icon

    I have already uninstall the program but does not control panal icon

    Hello

    Thanks for posting the request in the Microsoft community!
    Before troubleshooting, provide us with information.

    1 are. what program you referring?
    2. you receive an error message on the computer?

    You can try the solutions and check if the icons are removed from the control panel.

    Method 1:

    Run the fix it and check.
    http://support.Microsoft.com/mats/program_install_and_uninstall/

    Method 2:
    This could also be a problem with the virus. You can run a Microsoft security scanner to make sure that the computer is free from virus infection:
    http://www.Microsoft.com/security/scanner/en-us/default.aspx
    WARNING:
    If you run the antivirus program that is infected by the virus scan will get deleted. Therefore, reinstall the program. Also if the files and folders are affected by the virus, while they might even get deleted

    Method 3:

    If the previous step fails, check if it has all the facilities waiting on the computer using the registry.

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see the link below.

    Back up the registry

    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    Empty registry key "InProgress".

    Check the following registry key:

    HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress

    Empty/rename "PendingFileRenameOperations" registry key

    Check the following registry key:

    HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations

    Just reply with the results. I'd be happy to help you more

  • Skype is running in the background, but does not open on the screen

    Skype is running in the background, but does not open on the screen

    Uninstall ArcSoft software. This application adds a filter cell of webcam and is originally Skype crashing.

    Stack: \Driver\,ArcSoftKsUFilter, \Driver\ksthunk,\Driver\usbvideo,\Driver\usbccgp

  • Microsoft Challenge appears on the taskbar, but does not open

    Original title:

    Collection of Microsoft

    My wife and I want to do the daily challenge of the Microsoft Collection and being close to the end of the month we are both very happy that we have succeeded so far.

    Unfortunately today, I did my challenges but Microsoft Challenge of my good lady appears on the taskbar, but does not p [facilitated someone can help fix this problem because as at the moment it's my fault :) :)]

    Thank you

    Hello

    Uninstalled and reinstalled then and he SAVED so it was all good in the end THANK YOU all our data

  • CD/DVD is recognized by the computer, but does not

    My CD/DVD is recognized by the computer, but does not... tried fix it did not help

    My CD/DVD drive has stopped working.  My computer recognizes the drive but when I put a disk in it cannot read.  I tried multiple disks, but nothing will work.  I tried microsoft fixit, but it does not work.  He said that the media cd/DVD drive is not readable.  Help, please.

    Is that your CD/DVD drive is older than 1 year?  Then, the drive may be defective, with a faulty lens.

    I don't think that any form of manual registry change or fix tool will work in the situation.
    S.Chatterjee

  • The extensions Manager does not see Adobe Photoshop CC 2015?

    96EESahc43k (1).jpg

    The extensions Manager does not see Adobe Photoshop CC 2015. All applications using ustanovliny creative cloud

    That's right, that it is no longer supported. Please refer to this article: Adobe Exchange

  • Sliders on my muse adobe site are visible when I discovered the site in the browser within the program, but does not show up on published site

    Sliders on my muse adobe site are visible when I discovered the site in the browser within the program, but does not show up on the published site.

    explorersglobalfineart.com

    How can I rectify this?

    Thank you

    A large number of files in your site seems not to be on the server. If you use file > upload to FTP host, please repeat the process and select Download all files. If you use file > export as HTML and download with an FTP external program, please repeat the export process in an EMPTY FOLDER and then download everything that has been exported to your server.

  • XI (11.0.09) drive sometimes starts the process but does not appear in applications or open on desktop

    On windows 7 64 bit. Sometimes reader XI (11.0.09) begins the process but does not appear in the applications. In this case however the application is started for example start menu, double-click on pdf, double-click AcroRd32.exe. He

    11.0.09 is put on hold for us - supported by 11.0.08 solves the problem

  • The new version does not see my camera. But my cam works well with older versions. What should I do?

    The new version of Skype does not see my camera. But my cam works well with all older versions. And it works with any other programs as well.

    Try to uninstall the version 6.18 and install version Skype 6.14.0.104.

    You can use this download link for the 6.14.0.104 version:

    http://community.Skype.com/T5/Windows-desktop-client/ASUS-USB2-0-webcam-not-recognized-by-Skype-6-18...

    Don't forget to turn off the automatic updates:

    Tools-> Options-> Advanced-> automatic updates-> turn off automatic updates

  • 8600 visible on the network, but does not print wireless

    I can see the 8600 on my airport network, but does not display the work sent wireless (no error msg, stay in the queue). To print correctly if the USB cable is connected. Also see a separate network of 8600, but do not have a WEP key for it and don't see how to create one, so it won't let me join this network. Don't see any info on this in your pages and support forums.

    It was a very good question. I looked at my list of printer and there are 2 8600 s that are listed.  I think we could be active when the printer is connected via the cable and one for when it is wireless. I went by default and had no trouble in a wireless printing sheet.  It is probably a mistake on my part of the user, but I don't remember adding a second printer in the menu printing. I'll play around with it and remove an if it is not necessary. Thanks for your help.

Maybe you are looking for

  • No WiFi after fresh El Capitan of Mac Pro 4.1 install

    I had my second hand Mac Pro 4.1 today and did a fresh install of El Capitan. Now I can't connect to my WiFi because there is not WiFi Interface. I already have a VRAM and resetting the SMC. Is it possible to get my WiFi working? Should I try a new i

  • Why Firefox has randomly decided not to load any website?

    On the eve of my problem was triggered, everything worked perfectly well. Today, as I turned it on my computer loaded up Firefox, I was greeted with "unable to connect, Firefox cannot connect to www.whatever.com. No Web site at all, no matter a secur

  • With Firefox 5.0.1 downloads are incomplete (.part) help!

    Downloads are incomplete - the downloaded file has a suffix ".part". Occurs in trying to download an attachment pdf software download websites and webmail. I prefer Firefox to Safari for Mac and have used it for years. Downloaded the new copy of the

  • L50-B-166 satellite shows "BSOD kernel data Inpage Error"?

    Good evening a few days ago the new laptop (Toshiba bought 3 months ago!) with 64-bit Windows 8.1 gives me every now and then this problem or to restart or by forcing the power button then restarting it myself! Is it possible that you can already be

  • Accidentally formatted partition 0 disk 4 BOOTCAMP Windows 8.1

    Yesterday I bought Windows 8.1 and began installing Bootcamp. I got through all the steps and got to the page collection of information on the windows OS. I filled everything, product key and all. Then I got to the page of partitions, I chose 0 4 Par