Help. Strange problem with a function returning VARCHAR2

Hi.
i have a function that returns VARCHAR2, the following happens:
IS
v_retorno VARCHAR2(1000);
v_stm2 VARCHAR2(500);
v_stm1 VARCHAR2(500);
BEGIN
v_retorno :='INSERT INTO '||p_nome_tabela||'('||v_stm1||') VALUES('||v_stm2||')';
-- it raises an exception OTHERS here
v_stm1 has the value :
PERFIL,TIPDOC,GRPIMP,DES,IMPDES,GRPAGI,TOTAGI,TOTPOSRVP,TOTNEGRVP,TOTALIZA,TEMMSG,ORDEM,CODFORCAB,SINAL,ORDEM,CODEMP,USER_CRI,DT_CRI
v_stm2 has the value:
'BASE','03','999999','teste','N','0701','N','111111','222222','S','N',TO_NUMBER('111'),'X',TO_NUMBER('1'),TO_NUMBER('222'),TO_NUMBER('10'),'427195',TO_DATE('19-05-2008 04:32:49','DD-MM-YYYY HH:MI:SS')
p_nome_tabela is a table name, for example my_table.
This is to produce a varchar2 string to execute dynamic sql.
Can you help? I don't understand what's wrong.
If i do this :
v_retorno :='INSERT INTO '||p_nome_tabela||'('||v_stm1||') VALUES(';
it works, doesn't raise the OTHERS exception, but if i had the other variable, the OTHER is raised.

No idea if this is relevant here or not, but:
v_retorno VARCHAR2(1000);
v_stm2 VARCHAR2(500);
v_stm1 VARCHAR2(500);What happens if your v_stm1 and v_stm2 variables are both 500 characters long?
I think you should think about increasing the length of v_retorno...

Similar Messages

  • Help - Strange Problem with Yahoo email on my 3G iphone

    When I send email from my yahoo account - very often the recipient gets multiple copies - sometimes as many as 5 copies. Sometimes they only get one copy. But usually they get multiple copies. I have been to the ATT store a few times trying to get this cleared up but no one can figure out why this happens and what to do about it.
    Does anyone else have this problem.
    Does anyone know why and what to do?

    Using the email validation tool, did you get any errors?
    When you install the Yahoo account to your Q10, it accepts your email address and password and sets up the account?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Strange problem with motherboard H67MA-E45(B3) =( please help

    Hi, I have a strange problem with my motherboard . I have a H67MA-E45 (B3) (MSI-7678) , when i try to update it ( http://www.pcbrain.it/images/stories/msi/H67MA-E45/bios/14.JPG ) , i choose the fourth option "Select one file to update bios" , but the bios did not recognize the update file (E7678IMS.1C0) into the Usb flash drive , but if i choose the second option (select one file to boot) the file is recognized. First I made a backup of the bios, and into the USB flash drive has been created a file called "E7678ICX.162" (my current update). Why the extension is IXC ?!? it should have been IMS ! . I tried changing the file extension "E7678IMS.1C0" (the new update) into "E7678ICX.1C0" and when i select the fourth option , the file is recognized! . Obviously I have not started the update , but if I proceed with the update, changed the name of the extension, is it safe? Or do damage?..please help me  :(
    P.S. Sorry for my bad bad and very poor english , i'm italian =)

    Quote from: HU16E on 28-September-11, 04:38:29
    Manufacturer's Website info;
    "KHX1333C9D3B1K2/4G 4GB 1333MHz
    (2 x 2GB)   CL9-9-9-27 1.5V"
    Still think there is a batch conflict or possibly a bad stick in the new sticks. Might test each new stick individually for a bad one. Again, the other solution for an 8BG kit may be the new Kingston HyperX PnP's. Could you post a screenshot of CPUID's CPU-Z Memory & SPD Tab for one of the new sticks?
    Added: Actually, screenshots of the old sticks Memory & SPD Tab may be of help too. It may be tRAS or tRFC differences between the two kits. Just speculation at this point though.
    All the batchs works perfectly...this is the screen http://imageshack.us/f/163/ramkk.jpg/ ...save and zoom
    EDIT: The old stick are SLOT #1 and SLOT #2 ...the new 3 and 4

  • Is anybody else having a problem with Bluetooth functionality after iOS 7? I have lg tone Bluetooth headset that I use while working out, cutting the grass, etc. Before the update I could press the "next track", but anymore.... Help?! Please!!!!!!

    Is anybody else having a problem with Bluetooth functionality after iOS 7? I have lg tone Bluetooth headset that I use while working out, cutting the grass, etc. Before the update I could press the "next track", but anymore.... Help?! Please!!!!!!

    Tell Apple about it: http://www.apple.com/feedback/iphone.html
    Be sure to give as much detail as possible.
    I would also check LG's site.

  • I have very strange problem with Iphone 3gs. Whenever it gets little hot or exposed to 30 degree temperature it losses signals (No service). Whenever it is cooled down the service is back. Please help!

    I have very strange problem with iphone 3gs. Whenever it gets little hot or exposed to 30 degree or above temperature it losses signals (No service). Whenever it is cooled down the service is back. Whenever I am using Skype or playing game for a while it losses carrier signals and wifi. When it is cooled down afer shutting down the carrier signals and wifi are back. It is for sure problem is with heating, but 30 degree tempeature in Oman is normal and some time it goes upto 50 degrees. I have noticed this has started after I started using substandard charger as I lost my original charger of the phone. Please help!! Thanx.

    The specifications define an operating range up to 35 degrees.

  • Strange Problem with ARD 2.2 *Please Help*

    Strange Problem with ARD 2.2 (2 problems)
    We have a classroom lab with 14 G5 PPC's running 10.4.11 with ARD 2.2 clients installed.
    We controlled all the G5's from a PPC Mac Mini running 10.4.11 with ARD 2.2, this was our Admin machine in our server room.
    We then added a teachers machine in the lab, an iMac PPC running 10.4.11 and ARD 2.2 also with admin status.
    Everything was working fine!
    We then upgraded the iMac PPC to an iMac Intel with 10.4.11. We installed ARD 2.2 admin and did the intel intergration.
    Everything worked fine.
    The iMac PPC was moved to another location, ARD was removed following instructions on the Apple website telling us to delete the application then run some terminal commands to remove pref's.
    Then our Intel iMac screen broke, we had the "lines" problem so bad only half the screen was visible. Long story short Apple wanted to charge us almost half the cost of the machine (no Applecare as it was a donated machine) to repair the screen!
    So we moved the PPC iMac back into the lab, re-install ARD 2.2.
    Now here is the problem, I can control, observe and run almost any command but cannot share with any computer!
    2nd,the Mac Mini Tech computer is running fine but cannot control or observe the PPC iMac teacher machine (we were able to do this before) I can even share the Mac Mini with the iMac but cannot observe or control!!
    Any ideas?

    "With ARD you have to enable option to control a Mac which has ARD running on it as opposed to remotely controlling normal client Mac."
    I'm not sure I understand, do you mean in System Pref's under sharing? Or is there somewhere else I need to enable to control?
    Seems like a hassle to reinstall the entire OS just to fix this problem, I am able to do everything else, except observe from one admin to another, and control from 1 admin to clients.
    thanks

  • Strange Problem with Mail & Address Book

    Hi,
    I'm having a strange problem with Mail & Address Book.
    When I go to compose a new message from Mail and hit the Address button (to show my email addresses), it won't launch the contacts window!
    I get this log from console;
    2007-10-15 22:55:59.079 Mail[410] * -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
    If I try to launch the Address Book from my Applications folder, it won't open, and it gives me this log from console;
    2007-10-15 22:57:57.348 Address Book[417] * -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
    Oct 15 22:57:57 PB-G4 /Applications/Address Book.app/Contents/MacOS/Address Book: CGImageSourceCreateWithData data parameter is nil\n
    2007-10-15 22:57:57.350 Address Book[417] Don't know about packed image EditLeftCapStd
    2007-10-15 22:57:57.350 Address Book[417] Exception raised during posting of notification. Ignored. exception: * -[NSCFArray addObject:]: attempt to insert nil
    If I quit Address Book, i'll get this from console;
    2007-10-15 22:58:37.892 Address Book[417] -[ABAddressBook setDefaultCountryCode:] called with a unknown country code 'us'
    I tried deleting the preferences, re-installing Address Book, also tried creating a new user, again no luck!
    Can somebody help!!!
    Please?!

    Hi dp13.
    Do you have any Address Book plug-ins or system utilities that could interfere with Address Book? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/Address Book Plug-Ins/
    ~/Library/Address Book Plug-Ins/
    To make accurately reporting this information easier, you may open /Applications/Utilities/Terminal, type the following command (you can just copy it here and paste it in Terminal), and press <Return>. You can then copy the output of that command from Terminal and paste it in your reply to this post:
    ls -1 /Library/Address\ Book\ Plug-Ins ~/Library/Address\ Book\ Plug-Ins
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.
    <hr>
    Did you also reinstall the appropriate Combo Update after reinstalling Address Book?
    Quit all the applications and verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, reinstall the Combo Update for the type of computer and the version of Mac OS X you’re using, unless this is the version of Mac OS X that came with the computer:
    About the Mac OS X 10.4.10 Combo Update
    Mac OS X 10.4.10 Combo Update for PowerPC
    Mac OS X 10.4.10 Combo Update for Intel
    After installing the Combo Update, the computer may restart twice and the first restart may take several minutes. This is normal.
    Take a look at the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk and back up before installing the update, no applications should be running while installing it, and you may experience unexpected results if you have third-party system software modifications (not normal applications) installed.

  • Problem with CONTAINS function

    Hi all!!
    i got a problem with contains function. i'm running oracle 11g.
    if i execute this query:
    SELECT x.lid as id,  x.sztitular as titular, e.szname as proName, x.szresumen  as resumen, b.sztitle  as catName,
    f.szname  as secName, d.szname  as cliName, x.datecreation as datecreation
    FROM CPR_PRACTICAL_CASE x,ctg_category b, CPR_CLIENT d, pro_product e, CAT_SECTOR f, CPR_PCASE_PRODUCT g, CPR_PCASE_SECTOR h,
    PRO_PRODUCTCATEGORY i WHERE  x.lid = g.lpcaseid and e.lid = g.lproductid and x.lid = h.lpcaseid
    and f.lid = h.lsectorid and x.lclientid = d.lid and i.lproductid = e.lid and  b.lid = i.lcategoryid
    AND x.szlocale = 'es-ES' AND  x.bavailable = '1'i get 1 row as result with the column sztitular = "rodillos de medidas"
    if i only add one more sentece to that query:
    AND CONTAINS( x.sztitular, 'rodillos',1) >0the query returns an empty set.. i really don't understand why because the term "rodillos" is present in the row's column called "sztitular"...
    i've put an index on that column:
    create index ITXT_TITULAR on CPR_PRACTICAL_CASE(sztitular) INDEXTYPE IS CTXSYS.CONTEXT;any help?
    many thanks!!!!
    Edited by: ElMazzaX on May 21, 2012 5:51 PM
    Edited by: ElMazzaX on May 21, 2012 5:53 PM

    How are you synchronising the index?
    http://docs.oracle.com/cd/E11882_01/text.112/e24435/ind.htm#i1008452
    Also see the Oracle Text forum:
    Text

  • Strange problem with desktop

    Hi, I have a very strange problem with desktops and dashboards something else. For example, when I am on desktop 2 and i go to desktop 1, when I click with the mouse on it, it goes again to desktop 2. or when I am on desktop 1 and I go to ddashboard, it returns again to desktop 1 when i click to something in the dashboard.
    but, if i am on desktop 3, and i go to desktop 1 throguh desktop 2, there is no problem. the same if i go from desktop 2 to dashboard.
    I hope i've been clear enough to let you understand this... explanation =P
    Anyone can help?

    My system has started "freezing". Actually, usually when I'm browsing the net, Chromium stops loading pages. Conky stops updating, and usually I can't switch to another programs. I can't start xkill from menu, menu opens but nothing starts. If I run "ls" etc in Terminal, nothing happens
    I can however control+alt+F1 to CLI, but if I try to login nothing happens.If doesn't help even if I kill X (I started it with startx). And if I don't kill X, I can't go back from CLI with control+alt+F7, there's just a black screen.
    I'm using Nvidia drivers also, and XFCE4. This started happening some time ago, I think I was using Gnome2 back then. And I have updated my system, and this has happened at least with 3 kernel versions. There's nothing on logs. Well, actually, there's "TCP: Possible SYN flooding on port 6881. Sending cookies" errors on everything.log. But those don't happen when system freezes. And sometimes Chromium stops loading pages but other programs don't freeze, I think it's a problem with cache or something.
    Not really sure if this everything happens because of Chromium. I think I'm gonna switch back to Firefox and see what happens. Usually I'm running Chromium, Opera (use it just for a couple of pages), couple of Terminals and Kaffeine.

  • Strange problem with my build JAR

    Hiii everybody... I'm having a strange problem with my build (JAR file)... when I work with the Eclipse and I click in the table that returns the clients stored in my PostGre database it works fine, but when I build my application and it generates my JAR file and I open it and click in the same table to return the objects that I have.. it does not appears anymore.. just show when I work with eclipse... and the database is the same for both.
    I already checked the database path in my properties file... and the application recognize the database because I can login and there isn't any runtime exception...
    In that application I work with Hibernate and Spring... for me it is very strange because the application works fine when I run by eclipse... but does not return the database data when I click on my Jar file to open the application..
    Someone can help me with that?
    I dont know if the problem is in the Spring, Hibernate, Libraries...
    thanks in advance...

    So what's the error then? Are there any error messages? Have you checked the console? Or are you just clicking on the jar and you wouldn't even see the errors if there are any?
    What do the logs say?
    You're not giving a lot to work on here.

  • Strange problem with 2 different Soundblaster car

    I have a very strange problem with these 2 cards First i had soundblaster li've value which was installed with the default windows drivers. Although it'swas installed correctly in device manager, i hear no sound and when i go to control panel->sounds and audio devices, under the volume tab there?was no audio device and everything?was greyed. But when i restart or shutdown the pc the windows sound suitable for this action played without problems. Media player couldn't play any sound, neither youtube. I downloaded and installed the Li'veDrvUni-Pack(ENG). Everything worked ok but after a while i had the same problem. So i decided to buy a different sound card, the Li've Audigy SE. Installed, worked fine, but after a short period of time i have the same problem. Most of the times when i boot into Windows the sound is ok, after a while (5 minutes or hour) i hear no sound and in the control panel i see the no audio device message although in control panel the card appears to be installed correctly. Any ideas?

    Yes, I agree.
    But my question: is there any software trick that I could use to fix the situation.
    For example, how can I ask 2 keyboards about each one's NumLock state ?
    I know about getLockingKeyState() function, but it always returns the NumState of the regular keyboard. How can I know and/or change the NumLock state of the small one ?
    Thanks

  • Strange problem with purple-remote

    Hi, I experience a strange problem with purple-remote (program which allow to control Pidgin via D-Bus) :
    To get the current status message, you have to type
    $ purple-remote getstatusmessage
    This works, but when I type
    $ echo $(purple-remote getstatusmessage)
    this fails with the error
    Traceback (most recent call last):
    File "/usr/bin/purple-remote", line 238, in <module>
    print output
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 12: ordinal not in range(128)
    Why?
    How can this program work in the first case but not in the second?
    Thank you
    Edit: BTW, is there a workaround to put the output of `purple-remote getstatusmessage' in a variable? $(), redirections and piping doesn't work.
    Fractal
    Last edited by Fractal (2010-04-04 12:09:56)

    Hi Andyh,
    Welcome to the forum.  How annoying does that sound, if I had to get up every time I wanted to change channel or volume I would crack up.
    Drop me an email to [email protected], please include your BT account details and I will see what can be done to help.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Strange problem with Contribute 3

    I have a strange problem with Contribute 3. One of my page
    editors changed a single page on my web site and submitted it for
    review. When I go to review the page, 75 pages show up to be
    reviewed. If I try to edit the actual page that was changed, it
    tells me I can't approve the changes until I accept the changes on
    the other pages and each of those pages gives the same message...an
    infinite loop. The only way to get around this is to reject each
    page individually and this took several hours. She tried again and
    the same thing happened. How can I fix this problem. I think it is
    a bug in Contribute because 74 of these pages had no changes to
    them.

    Still haven't solved this, even the backup no longer works...Would anyone be interested in helping me by letting me send them a project, making one simple change for me, then saving the project, returning it to me and exporting it as wav?
    this would help me tremendously...
    let
    me
    know
    if
    u
    can
    help
    anyone be interested in helping Mr

  • TS4040 I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs re

    I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs repairing. So I click on Repair, and once again I'm prompted for a password, which I enter, then the same error box opens, and so it goes. Can anyone help me with this problem? I'd greatly appreciate it.
    Thor

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Step 1 should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary, and if everything is working as expected after step 1.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Strange problem with Adobe Acrobat X (crash without a trace)

    Hi,
    I have a strange problem with Adobe Acrobat. It happens totally randomly, it leaves no signs in system logs.
    What is happening: during my work Adobe Acrobat sudennly crashes. After a crash I cannot run it again - system seems to do something for a second, but then nothing happends. When i look into taks manager - there are no processes of Acrobat.exe. It just doesn't want to run. What I need to do is to reinstall whole Adobe Acrobat - which requires restart.
    I've already tried to restart system after crash, it doesn't help - reinstall is required.
    Sometimes everyting is fine for a 3 months, sometimes crash happens a week after the previous one. It also happens in very different situations (somtimes  while opening a file, sometimes when doing something simple, sometimes in more complex tasks).
    Has anyone encountered a similar problem?
    Acrobat version: 10.1.1
    System info: Windows 7 64 bit

    Hi Kelvin,
    Please let me know what OS version you are using.
    The error also shows OS requirements not met.
    Futher please try the steps below :
    > Enable the hidden Admin Account on Windows 7 ( Ref :  http://www.howtogeek.com/howto/windows-vista/enable-the-hidden-administrator-account-on-wi ndows-vista/ )
    > Disable all Non-Microsoft Startup Services. (Ref : http://helpx.adobe.com/x-productkb/global/disable-startup-items-services-windows.html )
    > Disable all the Antivirus softwares like CA, Norton,Mc Afee etc. temporarily from the computer.
    Reboot and try installing in the new enabled Admin user account and check.
    Please refer the Kb Doc : http://helpx.adobe.com/creative-suite/kb/error-exit-6-exit-7.html.
    Also see Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for information on how to review your installation logs
    Regards,
    Rave

Maybe you are looking for

  • How do you copy messages from one Mac to another?

    Scenario: I have one Mac with 7 Mail accounts with messages up until February 2012 (plus the last few days). I have another Mac with 8 accounts (the 7 plus one other) and messages between February 2012 and now. How do I get the messages from the seco

  • Variant Configuration Error in sales order

    Hi, Done the customization for variant. Raised sales order & selected the characteristics like colour--Red & engine--200cc for material & checked in item level condition its showing the 2 characteristic 100cc & 200cc engines but not the characteristi

  • 10.9.4 update causing internet browsing errors after wake from sleep

    Macbook Pro Late 2011, OS X 10.9.4 So before the 10.9.4 update, I had no problems with Wifi and wake from sleep. Now, after the update, random web pages either don't load (Chrome & Firefox) or return a "Memory Not Allocated" error (Safari). Also, my

  • Address Book Names Missing -- Just Phone Numbers

    A friend of mine has an iPhone, but does not have MobileMe. She wanted to sync her contacts (which were on her iPhone) to her Mac's Address Book (which had no contacts). After connecting her iPhone to iTunes, she went under the "Info" tab and selecte

  • Retreiving email account password?

    I lost an email account password on my home computer but have the password saved on my blackberry, how can I reteive it? All i see when I look it up is ******. Thanks