type of data error during the operation on 11 G less

Dear expert, can you please check the procedures to follow to see why I get below error
Only difference in procedures is to 5.6,7 line numbers (fixed less query)
Procedure a.
-----------------
sys @ > CREATE OR REPLACE PROCEDURE compare_schema (i_src_owner VARCHAR2, VARCHAR2 i_tgt_owner)
2 AS v_count NUMBER;
3 BEGIN
4. SELECT COUNT (*) IN the v_count OF
5 (SELECT table_name FROM all_tables owner WHERE = i_src_owner LESS SELECT table_name FROM all_tables owner WHERE = i_tgt_owner
6 UNION ALL
7 SELECT table_name FROM all_tables owner WHERE = i_tgt_owner LESS SELECT table_name FROM all_tables owner WHERE = i_src_owner);
8 IF v_count > 0 THEN
9 dbms_output.put_line ('-logical ');
10. OTHER
11 dbms_output.put_line (' '-OTHER logic ");
12 END IF;
13 END compare_schema;
14.

Created procedure.

Elapsed time: 00:00:00.01

Procedure B
-----------------
sys @ > CREATE OR REPLACE PROCEDURE compare_schema (i_src_owner VARCHAR2, VARCHAR2 i_tgt_owner)
2 AS v_count NUMBER;
3 BEGIN
4. SELECT COUNT (*) IN the v_count OF
5 (SELECT table_name FROM all_tables owner WHERE = i_src_owner LESS SELECT table_name FROM all_tables owner WHERE = i_tgt_owner)
6 UNION ALL
7 (SELECT table_name FROM all_tables owner WHERE = i_tgt_owner LESS SELECT table_name FROM all_tables owner WHERE = i_src_owner);
8 IF v_count > 0 THEN
9 dbms_output.put_line ('-logical ');
10. OTHER
11 dbms_output.put_line (' '-OTHER logic ");
12 END IF;
13 END compare_schema;
14.

CAUTION: Procedure created with compilation errors.

Elapsed time: 00:00:00.02
sys @ > view the error
Errors in PROCEDURE COMPARE_SCHEMA:
4/1 PL/SQL: statement ignored
4/8 PL/SQL: ORA-01790: expression must have the same type of data as
matching expression

user507531 wrote:
Dear expert, can you please check the procedures to follow to see why I get below error
Only difference in procedures is to 5.6,7 line numbers (fixed less query)
Procedure a.
-----------------
sys @ > CREATE OR REPLACE PROCEDURE compare_schema (i_src_owner VARCHAR2, VARCHAR2 i_tgt_owner)
2 AS v_count NUMBER;
3 BEGIN
4. SELECT COUNT (*) IN the v_count OF
5 (SELECT table_name FROM all_tables owner WHERE = i_src_owner LESS SELECT table_name FROM all_tables owner WHERE = i_tgt_owner
6 UNION ALL
7 SELECT table_name FROM all_tables owner WHERE = i_tgt_owner LESS SELECT table_name FROM all_tables owner WHERE = i_src_owner);
8 IF v_count > 0 THEN
9 dbms_output.put_line ('-logical ');
10. OTHER
11 dbms_output.put_line (' '-OTHER logic ");
12 END IF;
13 END compare_schema;
14.

Created procedure.

Elapsed time: 00:00:00.01

Procedure B
-----------------
sys @ > CREATE OR REPLACE PROCEDURE compare_schema (i_src_owner VARCHAR2, VARCHAR2 i_tgt_owner)
2 AS v_count NUMBER;
3 BEGIN
4. SELECT COUNT (*) IN the v_count OF
5 (SELECT table_name FROM all_tables owner WHERE = i_src_owner LESS SELECT table_name FROM all_tables owner WHERE = i_tgt_owner)
6 UNION ALL
7 (SELECT table_name FROM all_tables owner WHERE = i_tgt_owner LESS SELECT table_name FROM all_tables owner WHERE = i_src_owner);
8 IF v_count > 0 THEN
9 dbms_output.put_line ('-logical ');
10. OTHER
11 dbms_output.put_line (' '-OTHER logic ");
12 END IF;
13 END compare_schema;
14.

CAUTION: Procedure created with compilation errors.

Elapsed time: 00:00:00.02
sys @ > view the error
Errors in PROCEDURE COMPARE_SCHEMA:
4/1 PL/SQL: statement ignored
4/8 PL/SQL: ORA-01790: expression must have the same type of data as
matching expression

Read it in the form

select count(*)
  into v_count
  from (select table_name
          from all_tables
         where owner = i_src_owner
        minus
        select table_name
          from all_tables
         where owner = i_tgt_owner)

union all

 (select table_name
    from all_tables
   where owner = i_tgt_owner
  minus
  select table_name
    from all_tables
   where owner = i_src_owner);

Do you see it?

Tags: Database

Similar Questions

  • There are errors during the operation of sanitation

    What started as a quick and easy update turned into a mess. I wanted to update my host esx 3 lab. The first host was a running iSCSI device and the three hosts connect to this target. Now, I forgot first well remove the target on the three hosts. So when I stop this unit the three hosts lost their target and froze. The article KB 1016291 talks about this behavior and I was about to be updated because of this hotfix

    Now, since the first host was trying to go into maintenance mode, but never did, I had to kill the virtual and also rebooted the host machine. Now it seems I broke Update Manager. When I try to remedy or organize one of the three hosts, I immediately get an error: "There are errors during the clean-up operation".

    On the vCenter server, I checked the logs in C:\Users\All Users\VMware\VMware Manager\Logs update but I can't find no manifest error. However, I give some log files that has changed today.

    At this point I don't know where to look now. Restarted host, restart services, etc, etc..

    Any help is appreciated.

    Gabrié



    http://www.GabesVirtualWorld.com

    Check the var/log/vmware/esxupdate.log. Probably, you will find information more useful.

    Marcelo Soares

    VMWare Certified Professional 310/410

    Technical Support Engineer

    Globant Argentina

    Review the allocation of points for "useful" or "right" answers.

  • 0xC1900101 - 0 x 20017 installation failed during SAFE_OS with an error during the START operation

    When you try to upgrade Windows 7 SP1 to Windows 10 ' 0xC1900101 - 0 x 20017 installation failed during SAFE_OS with an error during the START operation "is a problem recurring and none of the solutions posted for a Samsung RV511 work.

    When will there be a solution of Microsoft?

    Concerning

    Hello

    Since Windows 10 is a completely new operating system, the computer manufacturer might still not have designed and developed drivers for it. As suggested waiting for the manufacturer to release the necessary drivers for the hardware and then try the upgrade.

  • Get the error during the creation of the type of the Schema element variable

    Hello world

    To create a variable of type of schema, I do the following steps...

    Select 'Variables' after right-clicking on the bpel process. IN this window, go to 'Create VAriable' then select 'Element' type. Now in Type choose, I expanded the my imported schema files. And selected a type of item, and then click ok to create this variable. I get the message...
    TO SAVE ANY WSDL/SCHEMA FILES, YOU MUST HAVE A PARTNER LINK LOCATED IN THE DIRECTORY OF THE CURRENT PROJECT.

    Which is to say by whom.
    I imported the schema files in the project. After that I imported in the WSDL file also. Now why I am getting error during the creation of the variable. However, I can create variable directly in. BPEL file, then everything is fine. And it works too. But what is average with the error above? Why I am not able to create the variable via GUI?

    Thank you.

    Hello

    I have this same problem this morning, and I was going crazy, until I found this Web page on the internet:

    [http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process | http://technology.amis.nl/blog/1803/problem-importing-xml-schema-in-bpel-process]

    The idea is that the jdeveloper is not very good with directories with spaces to work on the directory name. If you move all your work in a directory without spaces, it will work smoothly. At least, it worked for me.

    Kind regards

    Nacho

  • The system has encountered an error during the interview of the application. If the error persists, contact the system administrator

    Hi all

    We cloned an Oracle EBS R12.2.2 instance and it worked very well for us. To increase the RAM of the newly created virtual computer, we did the virtual machine down. Once the RAM has increased, we started all the services (without error), including level of DB and Application layer. But when we try to access the application of EBS get the following error:

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    The system has encountered an error during the interview of the application. If the error persists, contact the system administrator.

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    Then I checked all the services, they are running.


    Log file: / u01/applmgr/SCREWS/fs_ne/inst/VIS_ebsr72/logs/appl/conc/log

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Process of shell VIS_0402@VIS Manager internal simultaneous departure - ID 6095

    logfile=/U01/applmgr/vis/fs_ne/inst/VIS_ebsr72/logs/appl/conc/log/VIS_0402.Mgr

    PRINTER = noprint

    mailto = applmgr

    Restart = N

    diag = N

    sleep = 30

    PMON = 4

    quesiz = 1

    Reviver is ENABLED

    CP-SYSTEM ADMIN RESP. internal MISSINGThe competitor Manager encountered an error.

    Check the simultaneous log manager for more information. : APRIL 2, 2014 14:21:59 -

    Shut down the internal concurrent Manager: April 2, 2014 14:21:59

    List of errors encountered:

    .............................................................................

    _ 1 _

    Systematic AFPCSQ can't nec USER_ID value of the profile option. ORACLE

    error 1403 in get_responsibility_data

    Cause: get_responsibility_data

    has failed because of the ORA-01403: no data found.

    The SQL statement being executed at the time of the error was: and

    a exe

    .............................................................................

    APP-FND-01388: cannot read the value for option profile SQL_TRACE in routine and ROUTINE.

    List of errors encountered:

    .............................................................................

    _ 1 _

    Routine AFPCAL has received the code of failure while running or analysis of your

    simultaneous program CPMGR

    Examine your log file of concurrent application for more information.

    Make sure that you pass arguments in the correct format.

    .............................................................................

    The internal concurrent Manager VIS_0402@VIS ended with the State 1 - abandon.

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Note: Before you restart the virtual machine it worked great. It has not changed anything except the RAM to the virtual machine. After the start, we get error.

    I need your help. Please suggest me.

    Thank you

    Prabhakar

    Hi all

    Thank you for your support. I solved the problem. Find the info below.

    ===================================================================================================

    Question: Like I said existing VM is cloned VM. Then after we had changed the host name. I checked the database alert log file:

    Before the reboot: name of the node was the previous still node name VM that it functioned very well. (for ex: xyz.domain)

    After the reboot: name of the node is replaced by the new host name. (for ex: abc.domain)

    Once the name of the node is changed he started creating problem in starting the application services.

    One last thing, I want to mention here after hostname change, approval of new contextfile has 700, but it should be 755.

    Solution: I followed these steps.

    (1) stop all services on the LAYERS of the DB and APP

    (2) change the new contextfile permission if not 755 and the .env at the level of the source DB

    (3) cd $ORACLE_HOME/appsutil/bin and run as: perl adgentns.pl appspass = apps contextfile = $CONTEXT_FILE - removeserver

    (4) change the name from old host to the new host name, so find in contextfile.

    (5) start listener, then the database

    (6) listener status, it must must give service to the db instance

    (7) perform autoconfig with new contextfile (DB Tier)

    (8) perform autoconfig (pane APP)

    (9) start all services

    ======================================================================================================

    It works for me, and now the application is running. I hope that it will also work for others.

    Thank you

    Prabhakar

  • Sync has encountered an error during the synchronization. Unknow error

    I get the following error message: 'Sync has encountered an error during the synchronization. Unknown error. Synchronize automatically retrying this action. "In addition, currently, my favorites are useless: I lost all my favorites and I can't add any new.

    Problems with bookmarks and history does not properly can be caused by a corrupted database places.sqlite file.

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • What can I do about 48 error during the update of the iphone 4S?

    What can I do about 48 error during the update of the iphone 4S?

    Hello! Try the procedure described in section of the Apple Support below:

    Solve the iOS update and restore error in iTunes - Apple Support

  • Satellite P305D - different error during the startup sequence

    Hi I have a constant problem I have no idea how fix it. I have Windows Vista Home premium loaded and it works very well when it is running. I can restart the laptop several times and it starts perfectly, if I turn it off for an hour or two and go to start it always happens with a different error during the startup sequence. Most of the time I just go to start Windows normally and it loads, other times I have to go to the ERD.

    I uninstalled Vista and wipe the system well before reloading (using another drive) and the same thing happens. Would it be more likely to be hardware related? I know the battery charges well and I ran all the tools that Vista has to check the hard drive, so I don't know where to go next.

    Any help would be appreciated.

    Terry

    Hello

    Can you please post what errors you get during the boot process?

    In my opinion it could be a hardware problem, because you have already tried to reinstall Vista, so I doubt that the error is software related.
    Strange, but it might be a problem of RAM or HARD disk. The two parties, you can test it with Memtest86 and Drive Fitness Test. Google is your friend to find these two tools.

    In the worst cases, you must go to an authorized service provider. Technicians can check the entire notebook.

  • Update ATML report header with the data collected during the execution of the test?

    I need to add data obtained during the tests to the report header (ATML TR5/6_Horizontal.xsl). I tried to implement all update features I've seen here, nothing done. I can get some added things if I do during the PreUUT, but I do not have these data. Does not work try the same commands (use the Parameters.UUT.AdditionalData container). I have not been able to get either the recall of ModifyReportHeader to do. Help and I saw others examples of support seem to be about half of what I need to this implementation. Any help is appreciated.

    -Randy

    Hello

    ModifyReportHeader would be the first thing I would try - what kind of problems did you have when you tried this?

    Have you read through the following knowledge base?  How to change a report XML TestStand header

    Kind regards

  • STOP: c0000221 {Bad Image Checksum}. The image rpcrt.dll is possibly corrupt and recovery XP says error during the extraction process. Details of error: path not found___

    My friend turned on their laptop packard Bell recently and had the following problem. Windows XP screen loads but is then followed by a blue screen that says STOP: c0000221 {Bad Image Checksum}. The image rpcrt.dll is possibly corrupt. The header checksum does not match the checksum calculated.

    I can't the laptop to go further. I have accessed the Microsoft recovery Panel and try a non-destructive recovery as there are some precious photos that need backup. However, when you select 'no profile' to begin the recovery, I get the message:

    Error during the extraction process. Details of error: path not found

    I'm a bit of a novice when it comes to this sort of thing, but if someone can provide step by step help giving rise to lose photos, I'd be willing to give it a try. I also have XP Home Edition disk that came with the laptop but has never been opened. Any help would be appreciated. Thank you

    You hear your message said something about rpcrt4.dll?  It is important to relay the exact message you see.

    Please provide additional information on your system:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    Describe your current antivirus and software anti malware situation: McAfee, Norton, Spybot, AVG, Avira!, Defender, ZoneAlarm, PC Tools, MSE, Comodo, etc..

    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)

    The afflicted system has a CD/DVD drive work?

    You have a true bootable XP installation CD (it is not the same as any recovery CD provided with your system)?

    You use some CD to access this Panel of Microsoft recovery where this "no profile" option is?  I don't know what all this means if it isn't some CD shipped with your system, in which case, I would use it for a coaster instead of something to fix your system.

    If the c:\windows\system32\rpcrt4.dll file is missing or afflicted, you do not start in the last good known Configuration.

    You also will not start in any kind of Mode safe no more.

    Even if you could boot mode safe, you would find that sfc/scannow does not work in Mode without failure in all cases (never).  If you try it, you'll see a message like this:

    Windows file protection could not initiate a scan of protected system files.

    The specific error code is 0x000006ba [the RPC server is unavailable.].

    Failed to start the RPC mode server safe either.

    I can't recreate your error exactly, but it is easy to replace the rpcrt4.dll file.  Looks like you have a working CD drive, so put yourself a Hiren boot CD and when you started on this, you can copy your precious files to a USB device for safety.

    There should be a backup copy of rpcrt4.dll already on your system, here or here:

    c:\Windows\System32\dllcache

    c:\windows\ServicePackFiles\i386

    You need to rename or replace the rpcrt4.dll file which is in c:\windows\system32 and replace it with one you will find the backup copies.

    There should be a backup copy of rpcrt4.dll already on your system, here or here:

    c:\Windows\System32\dllcache

    c:\windows\ServicePackFiles\i386

    When you get the Hiren's CD's, you can use to replace the missing or suspicious file.  If you need help with that, first get the Hiren's boot CD made and start over, then we can continue.

    Do you have a Hiren BootCD you can download here:

    http://www.hirensbootcd.NET/

    On the left, click on download, scroll down, choose the latest version, the download link is a little hard to see.  It is at the bottom of the page, above the drop for older versions and looks like this (click this component to download the ZIP file):

    Direct HTTP mirror + Torrent, Torrent Magnet

    Click the "Live HTTP Mirror" link to start the download and save the ZIP file on your desktop of somewhere that you can remember.

    The ZIP file is large, so the download will take probably some time to complete.  Then unzip the download to extract the Hirens.BootCD.ISO file that will be used to create your new bootable CD.

    Create a bootable CD. ISO file is not the same as simply copying the. File ISO onto a blank CD.  You must use software that includes how to burn a. ISO to a CD to create a bootable CD.

    File ZIP the Hiren is the file BurnToCD.cmd that you can double-click to launch it.  The BurnToCD.cmd will use the file BurnCDCC.exe to burn the. ISO file onto a blank CD using your existing CD burner.  You can also use your own burning software as long as your software is able to create a bootable CD. ISO file.  More modern burning programs can create a bootable CD. ISO image.  Create a CD from an ISO image bootable is not the same as just the file on a CD burning.

    If you need a simple and CD burning, this is a free software popular software:

    http://www.ImgBurn.com/

    Here are some instructions for ImgBurn:

    http://Forum.ImgBurn.com/index.php?showtopic=61

    It would be a good idea to test your new bootable CD on a computer running.

    You may need to adjust the computer BIOS settings to use the CD-ROM drive as the first device to boot instead of the hard drive.

    These adjustments are made before Windows tries to load.  If you miss it, you will need to restart the system again.

    When starting on the Hiren's CD, you will see a menu of options.  Choose Mini XP.  It will appear while Windows is loading and you will be presented with a desktop computer that has the look and feel of the interface of Windows Explorer, you are already accustomed to using.

    Using the Mini XP, you can access Internet, maneuvering around your system, search for files, copy files, replace the files and run the scans for malware, edit the text files (like the c:\boot.ini) etc.

    There are dozens of free and useful tools included in the CD that can be used to repair your system or copy your important personal files on another device (like a USB device or an external drive) in the case where you just give up and decide to reinstall your XP (I hope that you will not make this decision)

    Do, or do not. There is no test.

    I need YOUR voice and the points for helpful answers and propose responses. I'm saving for a pony!

  • Try installing SAGE simply accounting error: "Error 1935. An our error during the installation of Assembly component

    Try to install simple SAGE accounting and the following error:

    "Error 1935. An our error during the installation of the Assembly {97F81AF1-0E47-DC99-A01F-C8B39A1E1873} HRESULT 0X80071A91 component. »

    After this error, I also receive this error:

    "Error: 1603 Fatal error during installation." Consult the help of Windows Installer (MSi.chm) or MSDN for more information.

    Anyone out there has any help with these errors?

    TKS!

    Hello

    1. are you able to install other programs?

    2. How are you trying to install?

     

    I suggest to follow the steps provided and check if it helps.

    Method 1:

    Problems installing and uninstalling programs on Windows computers: http://support.microsoft.com/kb/2438651

    Method 2: You can also configure your computer in a clean boot state, and then try to install it.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

     

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Hope this information is useful.

  • When you try to copy a .jpg file in another folder I get an error "unexpected error prevents the operation."

    This is the error I got trying to copy a .jpg file in a different folder.

    An unexpected error prevented the operation. Make a note of this error code, which might be useful if you get additional help to resolve this problem:

    Error 0 x 80070021: the process cannot access the file because another process has locked a portion of the file.

    Any help is very appreciated.

    This is the error I got trying to copy a .jpg file in a different folder.

    An unexpected error prevented the operation. Make a note of this error code, which might be useful if you get additional help to resolve this problem:

    Error 0 x 80070021: the process cannot access the file because another process has locked a portion of the file.

    Any help is very appreciated.

    Apparently, Windows has a problem to download files larger than 50 MB.  To resolve this issue, follow these steps:

    In a security update, Microsoft has limited the size of files that can be downloaded from the remote folders to 50 MB. To increase this, you must change a registry setting.

    1. Download FileSizeLimit.reg
    2. Double click on FileSizeLimit.reg
    3. If necessary, enable the registry editor to run
    4. Click the Yes button to allow the changes need to be made
    5. Click OK
    6. Restart your computer

    For more information, please see the Microsoft article 900900 Knowledge Base.

  • Error during the full backup of the system Vista "Media is not UDF.

    Original title: error during the full backup of the system Vista "Media is not UDF" I tried CD - R and DVD + R

    I just finished day three re - build with all the latest updates and now I want an IMAGE backup to recover from.  When I run Backup asked that media... suggest a label for the DVD but I get the error 'Media is not UDF' end there...

    Also if I back up to another hard drive on my system can recover from this Image?

    Thank you!

    Ken D

    Hello

    backup on an external hard drive or DVD

    the 1st link below is how do the backup of the complete computer for the company, ultimate and vista business

    http://www.bleepingcomputer.com/tutorials/tutorial145.html

    and that is how do to recover the backup complete pc

    http://www.bleepingcomputer.com/tutorials/tutorial144.html

    and here is the information of microsoft in restoring a system image backup

    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-your-computer-from-a-system-image-backup

    If you have problems, it's in here is a forum for microsoft at the link specifically for backup questions below

    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

  • The web page freezes several times during the operation, recovers after about 3-20 minutes, freezes again. Also, lately, the screen lights up and sparkles in a pink/purple color

    I use Internet Explorer as my search engine and internet as my default msn.ca. The web page freezes several times during the operation, recovers after about 3-20 minutes, freezes again. Also, lately, the screen lights up and flashes in a pink/purple one color recovers to normal in 30 seconds approximately. I had an attempt of technician paid for help but couldn't. Can anyone help? Thank you

    Go to start / Control Panel / Internet Options / Advanced section then check the top box rendered = software use instead of gpu rendering / apply then OK.

    Restart all open windows ie11.

    For memory, Bing is a search engine ie11 is a browser and msn... is a home page.

    Any other number symbol use Gear and manage add-ons and toolbars and extensions and disable Adobe Shockwave element

  • 0xc007001d error during the installation of antivirus software

    0xc007001d error during the installation of antivirus software. AVG is the brand name. Installation stops with error code.

    Help!?

    I suggest that you uninstall and redownload it or switch to another brand or use the built in Microsoft Security Essentials. AVG has a bad reputation for bugginess, false positives.

Maybe you are looking for

  • An error message indicates that subject: chrome is an invalid URL and cannot be loaded.

    I tried to enter: chrome to make some changes, but I received an error message stating "the URL is not valid and cannot be loaded. I have not tried to do for several weeks, since I was first Firefox 11. I tried with all my extensions running, and he

  • Bloggie record length

    I use a bloggie and try to record a conference for one hour. The bloggie will stop recording after 30 minutes. Is there a way to fix this so it records for 60 or 90 minutes?

  • Satellite P200 - strange keyboard problem

    Hello guys, I got this really annoying problem that I n know how to fix. Whenever I'm trying to type a question mark it comes up with an A? and when I try to type quotation marks, it came with A?. I put t know how to fix it. I tried to read the user

  • How to find the imei number of backup

    Hi, I lost my iphone. I have backup and I see on the screen of device management. I want to find the IMEI number and give information stolen from the police.

  • White y410p screen

    So I used my y410p yesterday without any problem, so I set it down for 15 minutes and closed the lid but when I opened the lid upward once again a white screen fit, which then changed too pink then back to black white and random lines appeared. I don