Oracle

Return boolean value from oracle function

此生再无相见时 提交于 2021-02-04 17:30:06
问题 Trying to return value from function create or replace function compairenumber(num1 in number,num2 in number) return boolean is begin if num1 < num2 then return true; else return false; end if; end; when i'm giving query select compairenumber(5,10) from dual its not returning true or false. 回答1: Boolean values can only be used in other PL/SQL code, not in Oracle SQL. If you want a function whose return value is available in a select ... from dual then you will need to define the function to

SELECT data from another schema in oracle

ぐ巨炮叔叔 提交于 2021-02-04 17:08:05
问题 I want to execute a query that selects data from a different schema than the one specified in the DB connection (same Oracle server, same database, different schema) I have an python app talking to an Oracle server. It opens a connection to database (server/schema) A, and executes select queries to tables inside that database. I've tried the following : select .... from pct.pi_int, pct.pi_ma, pct.pi_es where ... But I get: ORA-00942: table or view does not exist I've also tried surrounding

SELECT data from another schema in oracle

心已入冬 提交于 2021-02-04 17:08:04
问题 I want to execute a query that selects data from a different schema than the one specified in the DB connection (same Oracle server, same database, different schema) I have an python app talking to an Oracle server. It opens a connection to database (server/schema) A, and executes select queries to tables inside that database. I've tried the following : select .... from pct.pi_int, pct.pi_ma, pct.pi_es where ... But I get: ORA-00942: table or view does not exist I've also tried surrounding

SELECT data from another schema in oracle

孤街醉人 提交于 2021-02-04 17:07:56
问题 I want to execute a query that selects data from a different schema than the one specified in the DB connection (same Oracle server, same database, different schema) I have an python app talking to an Oracle server. It opens a connection to database (server/schema) A, and executes select queries to tables inside that database. I've tried the following : select .... from pct.pi_int, pct.pi_ma, pct.pi_es where ... But I get: ORA-00942: table or view does not exist I've also tried surrounding

SELECT data from another schema in oracle

橙三吉。 提交于 2021-02-04 17:07:46
问题 I want to execute a query that selects data from a different schema than the one specified in the DB connection (same Oracle server, same database, different schema) I have an python app talking to an Oracle server. It opens a connection to database (server/schema) A, and executes select queries to tables inside that database. I've tried the following : select .... from pct.pi_int, pct.pi_ma, pct.pi_es where ... But I get: ORA-00942: table or view does not exist I've also tried surrounding

Oracle EBS AR 贷项通知单核销取值

做~自己de王妃 提交于 2021-02-04 16:15:26
SELECT cm.trx_number ,fnd_flex_ext.get_segs( ' SQLGL ' , ' GL# ' , gcc.chart_of_accounts_id, ad.code_combination_id) account_number ,ra.gl_date ,ct.trx_number applied_trx_number ,ad.acctd_amount_dr ,ad.acctd_amount_cr FROM ar_distributions_all ad ,ar_receivable_applications_all ra ,ar_payment_schedules_all ps ,ra_customer_trx_all cm ,ra_customer_trx_all ct ,gl_code_combinations gcc WHERE ad.source_table = ' RA ' AND ad.source_type = ' REC ' AND ad.source_id = ra.receivable_application_id AND ra.customer_trx_id = cm.customer_trx_id AND gcc.code_combination_id = ad.code_combination_id AND ra

Oracle UTL_FILE read CSV file lines

霸气de小男生 提交于 2021-02-04 14:18:14
问题 i'm using UTL_FILE package to read a csv file , then insert values in table, but my issue is how to read values separated by Commas.. , this is my code : declare file1 UTL_FILE.FILE_TYPE; str varchar2(200 CHAR); begin file1 := UTL_FILE.FOPEN('DRCT1','test_file.csv','R'); loop UTL_FILE.GET_LINE(file1,str); -- here i want to read each value before the Commas then insert them in my table -- insert statement.. dbms_output.put_line(str); end loop; exception when no_data_found then UTL_FILE.FCLOSE

Unlock apex admin account

一笑奈何 提交于 2021-02-04 14:09:39
问题 I run @apxchpwd.sql and unluck the account with this script alter session set current_schema = APEX_050100; declare l_workspace_id number := apex_util.find_security_group_id (p_workspace => 'INTERNAL'); begin wwv_flow_security.g_security_group_id := 10; apex_util.set_security_group_id (p_security_group_id => l_workspace_id); wwv_flow_fnd_user_api.UNLOCK_ACCOUNT('ADMIN'); commit; end; But it doest work. Thanks for any help 回答1: The apxchpwd.sql script is used to change the password, but it

Connect to oracle database with C++

强颜欢笑 提交于 2021-02-04 13:37:32
问题 I am looking for a way to connect to an remote oracle database and read some data from table within a c++ console application. Can some one give me some hints. Thnx. 回答1: soci, http://soci.sourceforge.net, is a reasonably modern C++ interface that uses the Oracle call interface. And can also connect to other databases ... 回答2: The official Oracle website proposes several resources. Amongst others: Oracle C++ Call Interface Develop C and C++ Applications with Oracle Database 11g Using OCI Just

How can I change the SID of an Oracle XE instance

笑着哭i 提交于 2021-02-04 12:12:02
问题 I needed to change the SID of an Oracle XE database (not the Service Name) to match a production database. When I tried searching online, most of the pages were describing changing or adding a service name through tnsnames.ora; that's not what I needed to do. 回答1: The asktom article has the answer, but the formatting and verbosity makes it hard to follow, so here's a summary: [XE_HOME] means where Oracle XE is installed. Normally this is C:\oraclexe\app\oracle\product\10.2.0\server . Make