oracle12c

Fastest way to compute for hash of a whole table [duplicate]

夙愿已清 提交于 2021-02-07 06:20:08
问题 This question already has an answer here : Oracle get checksum value for a data chunk defined by a select clause (1 answer) Closed 2 years ago . We need to be able to compute table hashes for an external environment and compare it to pre-computed hash from an internal environment. The use of this is to ensure that data in the external environment is not tampered by a "rogue" database administrator. Users insist this feature . Currently, we do this by computing the individual hashes of each

Oracle SQL Developer: Test failed: The Network Adapter could not establish the connection?

狂风中的少年 提交于 2021-02-05 08:01:27
问题 I'm in real need of a help here. I setup a Oracle Database server on a VirtualBox VM and until yesterday everything seemed to work just fine. Today when I initiated the database to keep working, and turned on SQLDeveloper in my local machine (Client machine) it threw me this error: Erro de ES: The Network Adapter could not establish the connection My VirtualBox VM network setting is configure to bridged adapter . And I was able to connect just fine and today, out of nothing this error started

How to get the number of elements in a JSON array stored as CLOB with Oracle 12c?

心已入冬 提交于 2021-02-05 06:27:06
问题 I'm storing a java class A as A_DOC in a clob column in my database. The structure of A is like: { id : 123 var1: abc subvalues : [{ id: 1 value : a }, { id: 1 value :b } ... } ]} I know I can do things like select json_query(a.A_DOC, '$.subvalues.value') from table_name a; and so on, but how I'm looking for a way to count the number of elements in the subvalues array through an sql query. Is this possible? 回答1: You can use JSON_TABLE: SELECT id, var1, count(sub_id) subvalues FROM JSON_TABLE

Sql Developer can conect Oracle Database 12c with TNS but can not connected with basic

拥有回忆 提交于 2021-02-04 21:25:54
问题 I have installed a new oracle database(12.2.0.1). I have create a pluggable database (orclpdb). I create a user Fed_Test_User in the PDB. And I can connect it by SQL developer with TNS(can connect by conn Fed_Test_User/welcome@orclpdb). But I can not connect by SQL Developer with basic connection type. Listener.ora: LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) sqlnet.ora: NAMES

Oracle 12c extended to support varchar2 > 4000 bytes doesn't work for user who is not sysdba

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-04 17:58:25
问题 On oracle 12c compatible 12.0.0, changed to extended with sysdba privileges. I can create a table with varchar2(16000) as column now and insert a string > 4000 bytes; but only when connected as sysdba. When connected as a normal user rather than sysdba, I cannot play with varchar2 >4000 bytes, an error ORA-60019 is thrown. Can anyone explain why? the param max_string_size= extended and compatible=12.0.0 when logged in as a user who is not a sysdba. 回答1: Do following steps and let me know if

ORA-00933 SQL command not properly ended but good in SQL Developer

独自空忆成欢 提交于 2021-02-02 09:01:29
问题 I am hoping someone can find what is the issue with my query because I am unable to see fault in it and Oracle SQL Developer seems to run the same query as the code in my Java Swing Application just fine. My query in SQL Developer: SELECT ad.ID,ad.Script_Name,ad.Current_Status, ad.Issues_found_during_run,ad.Testers, ad.Run_Date,ad.Tools,u.fTag,u.role, dbms_lob.substr(u.avatar) FROM allData ad INNER JOIN users u ON u.fTag = ad.lastUserWhoUpdated GROUP BY ad.ID,ad.Script_Name,ad.Current_Status,

ORA-00933 SQL command not properly ended but good in SQL Developer

╄→гoц情女王★ 提交于 2021-02-02 08:59:30
问题 I am hoping someone can find what is the issue with my query because I am unable to see fault in it and Oracle SQL Developer seems to run the same query as the code in my Java Swing Application just fine. My query in SQL Developer: SELECT ad.ID,ad.Script_Name,ad.Current_Status, ad.Issues_found_during_run,ad.Testers, ad.Run_Date,ad.Tools,u.fTag,u.role, dbms_lob.substr(u.avatar) FROM allData ad INNER JOIN users u ON u.fTag = ad.lastUserWhoUpdated GROUP BY ad.ID,ad.Script_Name,ad.Current_Status,

ORA-00933 SQL command not properly ended but good in SQL Developer

有些话、适合烂在心里 提交于 2021-02-02 08:59:21
问题 I am hoping someone can find what is the issue with my query because I am unable to see fault in it and Oracle SQL Developer seems to run the same query as the code in my Java Swing Application just fine. My query in SQL Developer: SELECT ad.ID,ad.Script_Name,ad.Current_Status, ad.Issues_found_during_run,ad.Testers, ad.Run_Date,ad.Tools,u.fTag,u.role, dbms_lob.substr(u.avatar) FROM allData ad INNER JOIN users u ON u.fTag = ad.lastUserWhoUpdated GROUP BY ad.ID,ad.Script_Name,ad.Current_Status,

Number format issue in Oracle

跟風遠走 提交于 2021-01-29 18:21:59
问题 So i have created a test table having a number column which is of the data type Number(11,8) . Now when i am trying to insert the value 13332 in the table it is throwing an oracle error saying: ORA-01438: value larger than specified precision allowed for this column I am not sure why. The same works when i am inserting into a column with data type Number(12,6) INSERT INTO MY_TABLE(COLUMN_1) values('13332'); 回答1: The reason is - out of 11 digits you have specified 8 digits after decimal places

How can we get the 15 minutes time interval

丶灬走出姿态 提交于 2021-01-29 08:40:40
问题 I am trying to fetch every 15min data in such a way that, if the current time is 23-10-19 11:11:30 then I need to get the data from 23-10-19 10:30:59 to 23-10-19 10:45:59 in the same way if the time is 23-10-19 11:15:30 then I need to get the data from 23-10-19 10:45:59 to 23-10-19 11:00:59. I have tried forgetting the 15min delay but not the way I want to approach. Please suggest me how can we approach the scenario select concat(to_char(current_timestamp - numtodsinterval(30,'MINUTE'),'yyyy