Help with dbms_xmlparser package
Hello.
release:
SQL*Plus: Release 9.2.0.8.0 - Production on Jue Abr 5 22:50:21 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Conectado a:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - ProductionI do not know why in this db I am having this error in a sql session with pl/sql block (it works ok in different environments):
sqlplus>r
1 declare
2 newParser constant dbms_xmlparser.parser:=dbms_xmlparser.newParser;
3 begin
4 null;
5 exception
6 when others then
7 dbms_output.put_line(sqlerrm);
8* end;
declare
ERROR en línea 1:
ORA-06502: PL/SQL: error : longitud de variable raw demasiado grande numérico o de valor
ORA-06512: en "XDB.DBMS_XMLPARSER", línea 60
ORA-06512: en línea 2
Maybe the error message in English can help:
[email protected]> r
1 declare
2 newParser constant dbms_xmlparser.parser:=dbms_xmlparser.newParser;
3 begin
4 null;
5 exception
6 when others then
7 dbms_output.put_line(sqlerrm);
8* end;
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: raw variable length too long
ORA-06512: at "XDB.DBMS_XMLPARSER", line 60
ORA-06512: at line 2
Similar Messages
-
I'm attempting to build a Nagios package, and I'm pretty close, actually have it installed and running, BUT...
when I run the web interface, it calls some CGI files, and I get an error that it can't find them. It can't find them because it's looking for them in /repo/packages/nagios/usr/sbin/nagios/sbin (with '/repo/packages/nagios' being our local repo where the package was built, and '/usr/sbin/nagios/sbin' being where it should be looking for the CGI files.)
I cheated by setting up that path and copying the files over, just to get it working, but obviously my PKGBUILD needs some help. I think the problem is pretty simple (just like me) and probably has to do with a configure prefix (with 'cgiurl' being the likely culprit.)
Here's my package build, any help would be greatly and fantasticly appreciated.
pkgname=nagios
pkgver=1.2
pkgrel=6
pkgdesc="host and service monitor designed to inform of network problems"
url="http://nagios.org/"
license=()
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
source=('http://internap.dl.sourceforge.net/sourceforge/nagios/nagios-1.2.tar.gz')
md5sums=('414d70e5269d5b8d7c21bf3ee129309f')
build() {
mkdir $startdir/pkg/usr
mkdir $startdir/pkg/usr/sbin
mkdir $startdir/pkg/usr/sbin/nagios
mkdir $startdir/pkg/etc
mkdir $startdir/pkg/etc/rc.d
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=$startdir/pkg/usr/sbin/nagios --with-cgiurl=/nagios/cgi-bin --with-html=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios --with-init-dir=$startdir/pkg/etc/rc.d
make all
make install
make install-init
make install-config
Thanks muchmanica wrote:
When you have a Nagios PKGBUILD ready, could you please make it available to others? That would be great.
Thank you,
Darin
Definitely, if I ever get it working properly. However, since I have it working it working well enough for our purposes, I won't be putting a whole lot of time in the PKGBUILD.
Thanks to Cactus for the advice above, but the build failed (don't have the error message handy.)
This was for Nagios 1.2, I may try building a package for Nagios 2.0b4 and see if I have any luck. -
Help with workflow - Package etc.
We just started using Package to update our running file... a small publication twice monthly, with lots of photos, pdf's etc. instead of the links file getting bigger and bigger with age, package will bring forward only what's repeating, right? - Looks good so far. Now we want to generate our print version, mostly b&w, some spot color, but offer advertisers the option of sending color ads to be used on the web version. First impression is, they're gungho... Haven't figured out how to get this accomplished just yet. Thought to make up the regular file, save, make plates etc. then copy, swap the color stuff in and make PDF's for the web... but where to put the color stuff, in the regular link folder, it'll start growing immediately, but maybe still manageable. Making sense? Any good ideas would be welcome... the web version is frontlinebuses.com (((it's elementary, we know... we're really bus folks, not design artists...))).. Thanks By the way, still using CS3. L W
L Welch wrote:
Somehow in our process we've avoided problems, every issue opens and works perfect (has for years now). We do use a save-as often, they may be the key... We're looking at several ways to accomplish the color for web thing.
Well, that's what everyone says rith up to the point where the file fails catastrophically, usually just before deadline. Consider yourself luck and living a good life.
Save As isn't going to get rid of cumulative corruption, it just either overwrites or creates a new copy of the file with the same corrupt components. It will remove useless change history, though. When you start fresh from the template each time you are always saving a second-generation file so the odds of problems are vastly smaller than the odds with a 52nd generation file. -
Upgrade 10gR2 to 11gR2 with apps 11.5.10.2 - Please help with rpm package
Hi
OS : Oracle Enterprise Linx 4 update 5
DB: 10.2.0.4
Apps: 11.5.10.2
I am upgrading my current 10.2.0.4 db with 11.5.10.2 apps TO 11.2.0 db and apps 11.5.10.2
When I am installing 11g software only. I am getting the following error
Package: ocfs2-tools-1.2.7
it says this is prereq for 11g and also shows actula value ocfs2-tools-1.2.4.-1
I have installed ocfs2-tools-1.2.4.1 from my oel 4 cd. Problem is it is expecting ocfs2-tools-1.2.7-1
I have searched everywhere on oss.oracle.com and google. did not find ocfs2-tools-1.2.7.-1 package , can anyone please help me.
same issue with glibc-2.3.4-41 package
expected value = glibc-2.3.4-41
actual value = glibc-2.3.4-2.36
ThanksSrini,
Thanks your reply
It says I need to register. So , is it paid site or how to complie my own rpm from source with public key which is mentioned on the website
Oracle's Enterprise Linux: OCFS2 Tools 1.2.7-1 packages for EL4 and EL5 are available on the Unbreakable Linux Network. Subscribers can upgrade to this release by issuing the following command:
$ up2date --install ocfs2-tools ocfs2console
What is this up2date, when I run that it is asking for username and password. Please give me instructions.
Thanks
Rao -
Please help with importing packages
I am trying to learn the Java Advanced Imaging (JAI) API. I have successfully installed java2SDK.
I downloaded the JAI library (jai-1_1_2-rc-lib-windows-i586.exe) and have installed it.
After installation, I added the JAI lib to the CLASSPATH.
CLASSPATH = C:\java\jai-1_1_2-rc\lib
when I try compiling a demo program from this tutorial page:
http://developer.java.sun.com/developer/onlineTraining/javaai/jai/src/FrontPage.java
I get these errors,
package javax.media.jai does not exist
import javax.media.jai.JAI;
how do I know which directory to copy the JAI lib files to so that
this import statement can find JAI
import javax.media.jai.JAI;
please help if you can
Thanks
JohnHi,
You have to give the full path of the jar file in classpath along with the jar file name
something like CLASSPATH = C:\java\jai-1_1_2-rc\lib\jai.jar ...see the jar file name and include that also -
Some help with dbms_metadata package
Hi
I starting to use the package DBMS_Metadata for return metadata and I have some questions
Firts
I have a table TBMETADATA (subject varchar2, result clob)
object = 'table', 'procedure', etc.
result = keep output dbms_metadata.get_dll
Now if I drop a table x from my database. How can I to run the script for this table x, stored in TBMETADATA.
Any ideahi user,
try with this,
select a from
select dbms_lob.substr(result,4000) a from TBMETADATA
) where a like '%X%'
Since you are not saving the table name in the TBTEMPDATA table im searching the same using like operator.
Hope this helps.
Regards
Sankar MN -
I'm don't know anything about packages or much at all as flash is concern. I'm trying to help the company I work for with a banner for the site... I have everything working fine as long as I do it from my desktop but the moment I put it on the site is blank.. I figure out the it may have something to do with my 1st line. I made a directory on the site with the exact same folder structure but I may be missing something. I thing that maybe it because if i rename or move the folder from where is at on the desktop it gives error in flash. How would i go about doing the import so it will read from a website directory.
package
import cn.com.aven.*;
import flash.display.MovieClip;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.display.Sprite;
import flash.display.Loader;
import flash.net.navigateToURL;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import flash.utils.Timer;
import flash.events.TimerEvent;
public class BannerRotatorMain extends MovieClipThe class files are used for creating the file that you will place on the server, the fla and as file do not get placed on the server, just the html, swf, and possibly others. What files did you load to the server? Do you have a URL you can share?
-
Please help with bean package problem - serlvet can't find package
Hi,
I'm fairly new to java web development, and I can't make any good learning progress due to an error I just can't seen to fix. It seems humiliatingly trivial, but I can't get past it.
Explanation:
I'm experimenting with beans, and I've created a very simple servlet called AppSetup to create a LinkBean instance and store it in the servlet context for later retrieval. My problem is that the servlet wont compile because it's telling me the package in which the LinkBean class file is in doesn't exist.
The servlet is in package org, and the bean is in package org.bean. This is the import statement in the servlet:
Code:
import org.bean.*;I've also tried:
Code:
import org.bean.LinkBean;and
Code:
import bean.*;I've tried all sorts of different package structures, but I get the same following error for all of them:
Quote:
C:\tomcat\webapps\chub\WEB-INF\classes\org>javac AppSetup.java
AppSetup.java:14: package org.bean does not exist
import org.bean.*;
^
AppSetup.java:19: cannot find symbol
symbol : class LinkBean
location: class org.AppSetup
LinkBean lb;
^
AppSetup.java:23: cannot find symbol
symbol : class LinkBean
location: class org.AppSetup
lb = new LinkBean();
^
3 errors
edit
Server is Tomcat 5.5
Any help would be greatly appriciated. Thanks.The bean class has to be in the classpath. The classpath variable informs the compiler\jvm where to find the .class files that are being referred.
To set a classpath,
javac -classpath C:\tomcat\webapps\chub\WEB-INF\classes;C:\tomcat\webapps\chub\WEB-INF\lib;C:\tomcat\common\lib;.; AppSetup.javaThere are 3 paths in the classpath variable above.
1.\WEB-INF\classes => Your class files
2. \WEB-INF\lib => Your app library files (.jar files)
3. \common\lib => common library .jar files
4 The dot (.) => current directory.
Read about classpaths [url http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html]here
ram. -
Almost a year ago, the SVN URL for the redeclipse-svn package changed. At that time, it was orphaned, so I adopted the package and fixed the URL in the PKGBUILD. Since then, I stopped playing the game. Now, when I try to install it on my new computer, the package function fails. Being inexperienced with PKGBUILDS, etc., I would like some help in fixing the package.
Here's the package function:
cd "$srcdir/$_svnmod"
make -C src/ DESTDIR="$pkgdir" prefix=/usr \
appname=redeclipse cappname=REDECLIPSE \
appsrcname=redeclipse \
system-install
install -Dm644 doc/all-licenses.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
And here's what I get when I try to makepkg:
==> Entering fakeroot environment...
==> Starting package()...
make: Entering directory '/home/sub/aur/redeclipse-svn/src/redeclipse/src'
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse
cp -r ../data /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse/data
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/man/man6
cp: cannot create directory '/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse/data': No such file or directory
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin
system-install.mk:98: recipe for target 'system-install-data' failed
make: *** [system-install-data] Error 1
make: *** Waiting for unfinished jobs....
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/doc/redeclipse
install -m755 redeclipse /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse/redeclipse
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse
sed -e 's,@LIBEXECDIR@,/usr/lib,g' \
-e 's,@DATADIR@,/usr/share,g' \
-e 's,@DOCDIR@,/usr/share/doc,g' \
-e 's,@APPNAME@,redeclipse,g' \
-e 's,@CAPPNAME@,REDECLIPSE,g' \
../doc/man/redeclipse.6.am | \
gzip -9 -n -c > /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/man/man6/redeclipse.6.gz
install -m755 redeclipse_server \
/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse/redeclipse-server
sed -e 's,@LIBEXECDIR@,/usr/lib,g' \
-e 's,@DATADIR@,/usr/share,g' \
-e 's,@DOCDIR@,/usr/share/doc,g' \
-e 's,@APPNAME@,redeclipse,g' \
-e 's,@CAPPNAME@,REDECLIPSE,g' \
../doc/man/redeclipse-server.6.am | \
gzip -9 -n -c > /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/man/man6/redeclipse-server.6.gz
cp -r ../doc/examples /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/doc/redeclipse/examples
cp ../doc/guidelines.txt /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/doc/redeclipse/guidelines.txt
install -m755 install/nix/redeclipse-server.am \
/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin/redeclipse-server
printf "\
g,@LIBEXECDIR@,\
s,@LIBEXECDIR@,/usr/lib,g\n\
g,@DATADIR@,\
s,@DATADIR@,/usr/share,g\n\
g,@DOCDIR@,\
s,@DOCDIR@,/usr/share/doc,g\n\
g,@APPNAME@,\
s,@APPNAME@,redeclipse,g\n\
w\n" | ed -s /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin/redeclipse-server
install -m755 install/nix/redeclipse.am \
/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin/redeclipse
printf "\
g,@LIBEXECDIR@,\
s,@LIBEXECDIR@,/usr/lib,g\n\
g,@DATADIR@,\
s,@DATADIR@,/usr/share,g\n\
g,@DOCDIR@,\
s,@DOCDIR@,/usr/share/doc,g\n\
g,@APPNAME@,\
s,@APPNAME@,redeclipse,g\n\
w\n" | ed -s /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/bin/redeclipse
install -m644 ../data/config/version.cfg \
/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse/version.cfg
ln -s /usr/share/redeclipse/version.cfg \
/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse/version.cfg
ln -s /usr/share/redeclipse/data \
/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/lib/redeclipse/data
make: Leaving directory '/home/sub/aur/redeclipse-svn/src/redeclipse/src'
==> ERROR: A failure occurred in package().
Aborting...
The error seems to be here:
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/man/man6
cp: cannot create directory '/home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/share/redeclipse/data': No such file or directory
mkdir -p /home/sub/aur/redeclipse-svn/pkg/redeclipse-svn/usr/binSorry for derailing this. Karol, the size was only an issue for me - that doesn't seem to be related to the OPs problems. I don't know where the 800MB figure came from, but nearly 2GB of space were used up before the svn checkout stalled due to running out of space - the download never even completed. I didn't try again after that as my download speed isn't that good and it would take a long while to just confirm what I already suspected about the Makefile.
-
Hi all,
I have a interface PROXY - MAIL.
I need to generate the attachment name dynamically, send an attachment and fill the body of email. I'm using Mail Package, according to note 748024.
But I do not know how to fill the body of email and send attachment.Could someone help me?
For the attachment name dynamically, I used the link: http://wiki.sdn.sap.com/wiki/display/SI/DynamicEmailAttachmentnameforReceivedMailsFrancis,
Issue resolved.
I didn't use the adapter module.
I use the Mail Package and follow the links:
/people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf
send a mail with a body and attachment
Thanks. -
Need help with function (package)
HI,
Here is my scenario
I have a package (stored procedure), and 3 functions and 1 procedure. Procedure calls all the functions to fetch data. I am having a trouble in accessing one of the functions. I need to count the number of records satisfy my where clause. Following is my example.
FUNCTION S_LEVEL (ME_NO IN VARCHAR2, STDATE IN DATE, ENDATE IN DATE) RETURN NUMBER AS LEVEL NUMBER;
SELECT COUNT(*)
FROM --- xS, -- SP
WHERE XS.SRVNBR = SP.NBR
AND XS.MEMBER_NBR = ME_NO
AND ((XS.DIR IN ('2824','28241','28242','5173','28952')
and xs.date between stdate and endate;
RETURN LEVEL;
END s_level
Now when I call this function from procedure (through a Crystal report), it never return anything and just freeze. Could someome please guide me what I am doing wrong or how it is supposed to be done?
Please help me, I will really appreciate your time and efforts.Khurram,
It's always a bad idea to use a reserved word to name something, regardless whether Oracle allows it or not.
Sooner or later you'll run into trouble.
SQL> create or replace
2 FUNCTION S_LEVEL RETURN NUMBER
3 AS
4 v_cnt NUMBER;
5 -- level NUMBER := 999;
6 begin
7 SELECT level
8 INTO v_cnt
9 FROM dual
10 CONNECT BY rownum < 2;
11
12 RETURN v_cnt;
13
14 END s_level;
15 /
Function created.
SQL> select s_level from dual;
S_LEVEL
1
SQL> create or replace
2 FUNCTION S_LEVEL RETURN NUMBER
3 AS
4 v_cnt NUMBER;
5 level NUMBER := 999;
6 begin
7 SELECT level
8 INTO v_cnt
9 FROM dual
10 CONNECT BY rownum < 2;
11
12 RETURN v_cnt;
13
14 END s_level;
15 /
Function created.
SQL> select s_level from dual;
S_LEVEL
999
SQL> -
Help! Need help with preflight package script
I am trying to write a package with Iceberg to push Office 2004 to 250 Macs. I need a preflight script with a condition that will stop my script if /Applications/Microsoft Office 2004 exists OR if OFFICE 2004 exists. Don't know if searching on the folder name is the best or if there is better way
If it doesn't exist I want it to continue with with placing Office 2004 in the /Applications folder.
I don't know how to do conditions (If, then, end)
PREFLIGHT SCRIPT
IF /Applications/Microsoft Office 2004 folder exist = STOP
IF /Applications/Microsoft Office 2004 folder doesn't exist continue with laying down files/folder in the package.
LAYDOWN FILES
LAY DOWN FILES IN ICEBERG FILE SECTION OF THE PACKAGE
POSTFLIGHT SCRIPT
#!/bin/sh
#Change to root directory
cd /
# Move Microsoft Office X folder to Messages Received folder
mv /Applications/Microsoft\ Office\ X /Messages\ Received
#Open Office 2004 Installer
open /Applications/Utilities/Installers/Office2004Installer
ALL Mac OS X (10.4.6)
ALL Mac OS X (10.4.6)
ALL Mac OS X (10.4.6)A simple condition (not using iceberg) would be:
#!/bin/sh
if [ -e "/Applications/Microsoft Office 2004.app" ]
then
echo "Microsoft Office 2004 exists, aborting installation"
exit 1
fi
open -a "/Applications/Utilities/Installers/Office2004Installer"
If Microsoft Office 2004 is installed then the script will exit with a message. If Microsoft Office 2004 is not there then the last line will be executed and the installer will open.
PowerBook G4 Mac OS X (10.4.8) MacBook Pro -
Help with utl_file package
hi
I need to write a procedure using utl_file package to read the data from excel sheet and then checking the avaibility
of that data in existing library. can anybody suggest me how to start with?Probably is better if you export your Excel as a CSV file and then map it to an external table.
By the way, you could read the Excel file directly if you can use ODBC driver (which can be a bit tricky in an Unix system)
Bye,
Antonio -
Help with support package EHP1 or 2
Hello guys
i'm lost
I installed SAP CRM 7.0 EHP1.
in support package
SAP_BW SAP Business Warehouse:
-SAPKW70204 BW Support Package 04 for 7.02
-SAPKW70205 BW Support Package 05 for 7.02
-SAPKW70206 BW Support Package 06 for 7.02
-SAPKW70207 BW Support Package 07 for 7.02
SAP_AP SAP Application Platform
-SAPKNA7020 SAP_AP 700: Support Package 0020
here is asking the pre-requisit: : SAPKW70023 ...
-SAPKNA7021 SAP_AP 700: Support Package 0021
-SAPKNA7022 SAP_AP 700: Support Package 0022
here asking SAPKW70024
-SAPKNA7023 SAP_AP 700: Support Package 0023
here asking SAPKW70025
this SAPKW70023/4/5 are from 700, i have 7.02...
how can I solve this situation??
Thank you very much.Hi,
When you look the "OCS Package Directory: New Packages" it's possible to see some SP pre-requisit which is no longer support your release. You can see " X" in front of those SP..
Please see the SAP note " Note 1064635 - SAP ERP Enhancement Packages: SP Stacks Release Info Note " carefully. This note update regularly and you can find the equivalent support package for those pre-requisit SP which is no longer valid for your system.
Find out the equivalent SP as per your system and apply those equivalent in place of those pre-requisit SP.
With Regards
Bhuban -
Help with assigning package for new program!Urgent please!
We upgraded to ECC6.0 and I am trying to create a new function group. I go to se80 --> create new function group --> Enter some text for the function group and then it prompts me to assign a package. I select a package (used to be development class in 4.6C) and when I click on save I get the following error:
"PACKAGE IN NON-ORIGINAL SYSTEM ONLY MODIFIABLE WITH ORGANIZER TOOLS". Could anyone please tell me how to solve this problem? Thanks in advance.
Mithun.Thanks for the reply Seshu. The package already exists in the new system and I am not sure why i am getting the error!!
Thanks.
Mithun.
Maybe you are looking for
-
Creation of autherization object
hi friends, here is urgent requirement for me. how to create autherization object using tcode su21. can u send the main steps for it,
-
My phone has been restored using iTunes. All of my previous photo are downloaded. I'm unable to delete the photos from the phone - no trash bin. It has utilized all my storage and I'm unable to use any of my apps.
-
Is there a way to get long running SQL Agent jobs information using powershell?
Hi All, Is there a way to get long running SQL Agent jobs information using powershell for multiple SQL servers in the environment? Thanks in Advance. --Hunt
-
Setting fillcorlor to one of my swatch colors
Is it possible to script the following. I would like to change my fillcolor to one of my swatch colors. I already know how to read the swatch names but i can asign them to my fillcolor.... please help...
-
Black and white stripes? Help!
Hello! I confess I'm a PC user (with plans to get a Mac in the near future, if that redeems me). Therefore I'm not especially familiar with Mac and its operating system, and when a problem arises I'm pretty helpless. I work in a technology lab at my