oracle12c

Oracle 12c Apex 4.2 ORA-24247 network access denied by access control list (ACL)

匆匆过客 提交于 2020-06-13 00:06:34
问题 hope you can help me too. I'm developing an APEX-Application. Oracle 12c APEX 4.2. I'm using the workspace wrk_projects in pdborcl. I need some information about the client. The client will act in the same domain. So I'm building a report: select utl_inaddr.get_host_name(sys_context('userenv','ip_address')) as hostname from dual; When I run it: report error: ORA-24247 network access denied by access control list (ACL) My question is: I have to define the ACL in the container or in pdb? How to

Oracle 12c Apex 4.2 ORA-24247 network access denied by access control list (ACL)

半城伤御伤魂 提交于 2020-06-13 00:05:22
问题 hope you can help me too. I'm developing an APEX-Application. Oracle 12c APEX 4.2. I'm using the workspace wrk_projects in pdborcl. I need some information about the client. The client will act in the same domain. So I'm building a report: select utl_inaddr.get_host_name(sys_context('userenv','ip_address')) as hostname from dual; When I run it: report error: ORA-24247 network access denied by access control list (ACL) My question is: I have to define the ACL in the container or in pdb? How to

Oracle 12c Apex 4.2 ORA-24247 network access denied by access control list (ACL)

对着背影说爱祢 提交于 2020-06-13 00:05:14
问题 hope you can help me too. I'm developing an APEX-Application. Oracle 12c APEX 4.2. I'm using the workspace wrk_projects in pdborcl. I need some information about the client. The client will act in the same domain. So I'm building a report: select utl_inaddr.get_host_name(sys_context('userenv','ip_address')) as hostname from dual; When I run it: report error: ORA-24247 network access denied by access control list (ACL) My question is: I have to define the ACL in the container or in pdb? How to

Oracle Database create automatic partition by range (long)

亡梦爱人 提交于 2020-06-01 05:05:25
问题 I need a lot of partition table from one of my col table and dataType is long so I don't think can do it with hardcode in Sql syntax , now my question is what can i do for partition tables with range of long and automatic keyword in oracle database 19c? Edit : I have Timestamp formated in long and I don't want to change it date type timestamp so I need every month split to separate partition I will convert all timestamp to long and store in database (because i need to reformat my timestamp to

Correlated Subquery working differently for Oracle 12c and 11g

此生再无相见时 提交于 2020-05-30 07:57:05
问题 We have a generic table that holds multiple records (DDL and DML below): CREATE TABLE "XXAB_ZZ_VAT_TRX_GT" ( "AB_INFO_V1" VARCHAR2(240 BYTE), "AB_INFO_V2" VARCHAR2(240 BYTE), "AB_INFO_V3" VARCHAR2(240 BYTE), "AB_INFO_V4" VARCHAR2(240 BYTE), "AB_INFO_V5" VARCHAR2(240 BYTE), "AB_INFO_V6" VARCHAR2(1996 BYTE), "AB_INFO_V7" VARCHAR2(240 BYTE), "AB_INFO_V8" VARCHAR2(240 BYTE), "AB_INFO_V9" VARCHAR2(1996 BYTE), "AB_INFO_V10" VARCHAR2(1996 BYTE), "AB_INFO_V11" VARCHAR2(150 BYTE), "AB_INFO_V12"

Alter Table Exchange Partition giving error

做~自己de王妃 提交于 2020-05-17 14:42:58
问题 I am trying to bring the partitioned data back into the original table. But getting the following error. I swapped the partitioned data into AR_TBCAM.BKP_COST_EVENT_P2016 table via this command ALTER TABLE BKP_COST_EVENT EXCHANGE PARTITION P2016 WITH TABLE AR_TBCAM.BKP_COST_EVENT_P2016 INCLUDING INDEXES WITHOUT VALIDATION; But I want to bring the data back into the TBCAM.BKP_COST_EVENT table. Meanwhile I have split the p2016 into 3 partitions -p2014,p2015,p2016 based on year. As per

Using Oracle Advanced Queues to monitor when a database table column is updated

北城余情 提交于 2020-05-17 06:25:06
问题 Env: Oracle 12c I am new to Oracle Advanced Queues (AQ) and it looks like it's supposed to be the best approach to use instead of polling. Based on this, I want to utilise AQ to be used based on the following trigger: CREATE OR REPLACE TRIGGER MY_TRG AFTER UPDATE OF STATUS ON "MY_TABLE" REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW declare v_status INTEGER; begin if :OLD.status = 'ERROR' and (:NEW.status = 'OK' or :NEW.status = 'ERROR') then -- -- do some Advanced Queue processing here ? --

How to Split a table rows into fixed size chunk in Oracle

对着背影说爱祢 提交于 2020-05-15 20:55:45
问题 I have a large table 1 million+ rows with a numeric column as primary key. I was trying for an Oracle sql query to get a split of size say 500. So that I have sort of buckets that have 500 records each and give their max and min value in that bucket. sample data pk_column column1 column2 column3 1002 abcd 1234 15-apr-20 1004 efgh 3435 14-apr-20 1007 ijkl 8855 16-apr-20 .... .... .... 2002 asdf 8565 17-apr-20 2005 efgh 5894 14-apr-20 the desired output is something like below bucket_no no_of

Update a column of same table if there is duplicate records

筅森魡賤 提交于 2020-05-13 19:43:28
问题 I need to update a column if the rows are duplicate in the table. Here the scenario is like if there are 3 rows which are duplicate then we have to mark two rows as error and one row as success. Dummy data could be like create table test_dup (acc_num number, tel_num number, imsi number, done varchar2(20)); insert into test_dup values (43532111, 9874554422, 58944235, null); insert into test_dup values (43532111, 9874554422, 58944235, null); insert into test_dup values (43532111, 9874554422,

Modifying PLSQL function to return multiple rows from same column

情到浓时终转凉″ 提交于 2020-02-06 12:38:30
问题 I am a beginner PLSQL user, and I have what might be a rather simple question. I have created the following SQL Function, which returns the created date of the process whose corporate ID matches the corporate ID that I have given it. I have this connected to my JDBC, and it returns values just fine. However, I just realized I overlooked an important issue--it's entirely possible that more than one process will have a corporate ID that matches the ID value I've inputted, and in cases like that