Data assignment error for dbms_xmldom.domdocument - oracle

I'm trying the example in the link below
http://www.dba-oracle.com/t_packages_dbms_xmldom_xmlparser.htm
but I get errors on this line
v_doc := dbms_xmldom.cument(v_variable);
how can I solve this problem
ORA-06550: satır 31, sütun 25:
PLS-00302: component 'CUMENT' must be declared
ORA-06550: satır 31, sütun 3:
PL/SQL: Statement ignored

#Alex Poole is correct.
It is not CUMENT. It is NEWDOMDOCUMENT
Try with this: V_DOC := DBMS_XMLDOM.NEWDOMDOCUMENT(V_VARIABLE);
Thanks

Related

terraform plan is giving the error : function call (function yamldecode)

Please find the GitLab repo for the terraform scripts which we are using.
enter link description here
Run in terraform plan gives the below error in an all-in-one.YAML file for the elastic search.
Error: Error in function call
on kubernetes.tf line 49, in locals:
49: resource_list = yamldecode(file("${path. module}/all-in-one.yaml")).items
|----------------
| path.module is "."
Call to function `"yamldecode"` failed: on line 458, column 1: unexpected extra
content after value.
enter image description here
As is describe in the fine manual:
Only one YAML document is permitted. If multiple documents are present in the given string then this function will return an error.
and one can trivially reproduce your error message:
content = yamldecode("---\nhello: world\n---\ntoo: bad\n")
on main.tf line 14, in resource "local_file" "example":
14: content = yamldecode("---\nhello: world\n---\ntoo: bad\n")
Call to function "yamldecode" failed: on line 2, column 1: unexpected extra
content after value.

SQL Alchemy with oracle: converting column overflows integer datatype

I extract data from an Oracle database with python 2.7 64 Bit . There is a field of the numeric type with 35 digits: 1200000000000000000000000000005151
If I want to read this field with SQL Alchemy, I get the following error:
File "D:\Produkte\CoCo\Sourcen\ConsultingConnector\src\ais.py", line 253, in tabledata2table
for row in tabledata.yield_per(buffersize).enable_eagerloads(False):
File "C:\Python27\lib\site-packages\sqlalchemy\orm\loading.py", line 98, in instances
util.raise_from_cause(err)
File "C:\Python27\lib\site-packages\sqlalchemy\util\compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "C:\Python27\lib\site-packages\sqlalchemy\orm\loading.py", line 71, in instances
fetch = cursor.fetchmany(query._yield_per)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\result.py", line 1166, in fetchmany
self.cursor, self.context)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 1413, in _handle_dbapi_exception
exc_info
File "C:\Python27\lib\site-packages\sqlalchemy\util\compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\result.py", line 1159, in fetchmany
l = self.process_rows(self._fetchmany_impl(size))
File "C:\Python27\lib\site-packages\sqlalchemy\engine\result.py", line 1076, in _fetchmany_impl
return self.cursor.fetchmany(size)
sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) ORA-01455: converting column overflows integer datatype (Background on this error at: http://sqlalche.me/e/4xp6)
It seems that SQL Alchemy is trying to cast in int, even though it's a long.
Do you have any idea how I can solve the problem or something like a workaround?
Thanks in advance,
Jassin
I just got the same problem and came up with a solution by converting the data type to character. e.g., "select to_char(ID)".

PLS-00103: Encountered the symbol ";" when expecting one of the following:

I am trying to insert the answer to a user's security question, for use in the pin reset feature.
Ellucian banner v8+ provides an API for running this and I very new to their API and from the looks of the error message below, I am far from running this correctly. Any help is appreciated.
I tried running this in Oracle SQL Developer:
execute gb_pin_answer.p_create(
P_PIDM => 12345,
P_NUM => 1,
p_gobqstn_id => 1,
p_qstn_desc => '',
p_ansr_desc => 'David',
p_ansr_salt => 'A123B456',
p_user_id => 'W:H12345678',
p_data_origin => 'WWW_USER',
p_rowid_out OUT gb_common.internal_record_id_type
);
This is a shot in the dark, but I thought I'd give it a shot, error message that displays when trying to execute that package's p_create function:
Error starting at line 15 in command: execute gb_pin_answer.p_create(
Error report: ORA-06550: line 1, column 30: PLS-00103: Encountered the
symbol ";" when expecting one of the following:
( ) - + case mod new not null table continue avg count
current exists max min prior sql stddev sum variance execute
multiset the both leading trailing forall merge year month day hour
minute second timezone_hour timezone_minute timezone_region
timezone_abbr time timestamp interval date
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
Error starting at line 16 in command: P_PIDM => 12345, Error
report: Unknown Command
Error starting at line 17 in command: P_NUM => 1, Error report:
Unknown Command
Error starting at line 18 in command: p_gobqstn_id => 1, Error report:
Unknown Command
Error starting at line 19 in command: p_qstn_desc => '', Error
report: Unknown Command
Error starting at line 20 in command: p_ansr_desc => 'David', Error
report: Unknown Command
Error starting at line 21 in command: p_ansr_salt => 'A123B456',
Error report: Unknown Command
Error starting at line 22 in command: p_user_id => 'W:H12345678',
Error report: Unknown Command
Error starting at line 23 in command: p_data_origin => 'WWW_USER',
Error report: Unknown Command
Error starting at line 24 in command: p_rowid_out OUT
gb_common.internal_record_id_type Error report: Unknown Command
Error starting at line 25 in command: ) Error report: Unknown Command
This is where I read up on using this function, p_create: http://inb1.banner.ecu.edu:9090/api_erd_index_guide/api/general/gb_pin_answer.html#p_create
UPDATE: code that is erroring out:
SET SERVEROUTPUT ON
declare
l_rowid_out gb_common.internal_record_id_type;
BEGIN
gb_pin_answer.p_create(P_PIDM => 36706, P_NUM => 1, P_GOBQSTN_ID => 1, P_QSTN_DESC => '', P_ANSR_DESC => 'David', P_ANSR_SALT => 'HB123456', P_USER_ID => 'H00036657', P_DATA_ORIGIN => 'WWW_USER', P_ROWID_OUT => 1_rowid_out);
dbms_output.put_line('rowid: ' || l_rowid_out);
END;
Error msg:
Error report: ORA-06550: line 4, column 199: PLS-00363: expression '1'
cannot be used as an assignment target ORA-06550: line 4, column 3:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
The problem is the execute. That's actually shorthand for a short anonymous PL/SQL block, and cannot be split across lines. (Except maybe with a continuation character, but I can't remember off-hand if I've ever got that to work). Only the first line is translated, so it's effectively trying to run:
begin execute gb_pin_answer.p_create(; end;
/
... and it quite reasonably then doesn't like the command ending as p_create(;. The rest of the procedure call is then treated as 10 separate commands, which generate the other errors you get, and they are also reasonable in that context.
The solution is to either put the entire procedure call on one line, which will make it harder to read; or simply to use your own block, rather than relying on execute:
begin
gb_pin_answer.p_create(
...
);
end;
/
The last parameter isn't right though; the bit from OUT ... needs to be replaced with => some_value, like you've done with the others. But it is an out parameter, so you need something to put the value in. Without seeing what else is in the script you're running I can't tell if you've already taken care of it, but with this pattern you can probably just add a variable to the anonymous block:
set serveroutput on
declare
l_rowid_out gb_common.internal_record_id_type;
begin
gb_pin_answer.p_create(
...
p_rowid_out => l_rowid_out
);
-- optional
dbms_output.put_line('rowid: ' || l_rowid_out);
end;
/
From the last edit, I see that you misstaken 1 for l...
1_rowid_out instead of l_rowid_out.
You cannot start a variable with a number like you tried to.
We got this error when mixing Dapper and native Oracle MDA constructs. Specifically trying to use the WithConnection construct with native Oracle driver. It didn't like that and returned a very similar and nonsensical error message "ORA-06550: line 1, column 259: PLS-00103: Encountered the symbol...blah blah blah"

Parallels Plesk Panel 9.5.4 fails to load up after upgrade to 11.0.9

I am facing annoying problem.
My hosting provider sent me an email that my Plesk panels version is too old and it needs to be updated. So I logged to my Parallels Plesk panel, and clicked update, I've chosen the latest release and got confirmation email that upgrade was successful.
After that my domain now loads up with Horder web mail log-in form, not my web page.
And when I try to log in to my Parallels Plesk panel I get:
ERROR: Zend_Db_Statement_Exception
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'psa.smb_apsPackages' doesn't exist
0: Pdo.php:234
Zend_Db_Statement_Pdo->_execute(array)
1: Statement.php:300
Zend_Db_Statement->execute(array)
2: Abstract.php:479
Zend_Db_Adapter_Abstract->query(string 'DESCRIBE `smb_apsPackages`', array)
3: Abstract.php:238
Zend_Db_Adapter_Pdo_Abstract->query(string 'DESCRIBE `smb_apsPackages`')
4: Mysql.php:169
Zend_Db_Adapter_Pdo_Mysql->describeTable(string 'smb_apsPackages', NULL null)
5: Abstract.php:835
Zend_Db_Table_Abstract->_setupMetadata()
6: Abstract.php:874
Zend_Db_Table_Abstract->_setupPrimaryKey()
7: Abstract.php:982
Zend_Db_Table_Abstract->info()
8: Select.php:100
Zend_Db_Table_Select->setTable(object of type Smb_Db_Table_Broker_ApsPackages)
9: Select.php:78
Zend_Db_Table_Select->__construct(object of type Smb_Db_Table_Broker_ApsPackages)
10: Abstract.php:1018
Zend_Db_Table_Abstract->select()
11: Abstract.php:1331
Zend_Db_Table_Abstract->fetchAll(string '`name` = 'osTicket'')
12: Abstract.php:150
Db_Table_Abstract->findByFields(array, boolean true)
13: Abstract.php:162
Db_Table_Abstract->findOneByFields(array)
14: Config.php:14
HelpDesk_Config::getHelpDeskInstances()
15: NavigationContext.php:342
NavigationContext->_fetchHelpDeskSectionNodes(object of type UserAdmin)
16: NavigationContext.php:196
NavigationContext->fetchCustomButtonsSectionNodes(object of type UserAdmin)
17: NavigationContext.php:70
NavigationContext->fetchSection(object of type UserAdmin, string 'custom_buttons', array)
18: NavigationContext.php:402
NavigationContext->get(object of type UserAdmin)
19: Navigation.php:95
Navigation->getUserContextList(object of type UserAdmin)
20: Navigation.php:113
Navigation->getRoot(object of type UserAdmin)
21: Navigation.php:357
Navigation->buildPathbar(string '/license.php3', NULL null, object of type UserAdmin, string 'dashboard')
22: Navigation.php:348
Navigation->getPathbar(NULL null)
23: Navigation.php:144
Navigation->detectCurrentUpLevelURI()
24: Abstract.php:303
Form_Abstract->_getUpLevelLink()
25: Abstract.php:312
Form_Abstract->renderPathbarButton(object of type Navigation, NULL null)
26: Form.php:109
Form->assign()
27: license.php3:75
Any suggesttions, please?
Looks like bug in libmysqlclien15 from third-party repository.
Try this solution http://kb.parallels.com/en/113737

BCB: from BDE to dbexpress, BCD exception

I'm having some problem about TSQLStoredProcedure. Here is the code:
storedproc->ParamByName("A")->AsInteger = adataset->FieldByName("AA")->AsInteger;
storedproc->ExecProc();
param "A" is declared integer in the form (and it's 29 in the program). Also the stored procedure has no errors. I'm sure of it. Database is Oracle 11g. By the way, as storedproc is executed an exception occurred:
...
EBcdException with message '<0000001:000000010000000:00000063612>' is not a valid BCD value
...
All was working fine with BDE but now, using dbexpress, there is this problem. I searched over the internet for some days and I did not find an answer.
I thank you in advance and beg a pardon for my English.
Francesco
Update
I searched over the web. I found something interesting at:
https://forums.codegear.com/thread.jspa?messageID=43223&tstart=0
http://www.delphigroups.info/2/8/750511.html
I decide to make some test:
SQLQuery->ParamByName("f1")->AsString = Edit1->Text;
SQLQuery->ExecSQL();
It works. Not the same for
SQLQuery->ParamByName("f1")->AsInteger = StrToInt(Edit1->Text); //ERROR DBX Error: Invalid Field Type.
SQLQuery->ParamByName("f1")->AsFloat = StrToFloat(Edit1->Text); //ERROR DBX Error: Invalid Field Type.
SQLQuery->ParamByName("f1")->AsBCD = StrToInt(Edit1->Text); //ERROR ORA-06502: PL/SQL: error: ... ORA-06512: at line 1.
SQLQuery->ParamByName("f1")->AsFMTBCD = StrToBcd(Edit2->Text); //ERROR ORA-06502: PL/SQL: error: ... ORA-06512: at line 1.
or by using TSQLStoredProc.
So now I call my pl/sql stored proc by TSQLQuery. I use "AsString" to pass values to parameters. Weird. How does dbexpress map types? Thanks in advance.

Resources