oracle12c

How to connect to Azure Oracle 12c Database using sqlplus or sql developer cloud connection

♀尐吖头ヾ 提交于 2019-12-04 17:17:56
I have 2 VM in azure one is a DB server and the other is a web server. I can get remote desktop connection for both these servers and web server can connect to Database wih sqlplus user/password@internal_network_ip:port/sid But however I cannot connect to Cloud DB from my local system. I tried sqlplus user/password@internal_ip:8552/sid ORA-12170: TNS:Connect timeout occurred sqlplus user/password@xxxx.something.net:8552/sid -- oracle port ORA-12170: TNS:Connect timeout occurred sqlplus user/password@xxxx.something.net:54955/sid -- port for cloud system used when taking remote desktop

PLSQL decode NVARCHAR2 from BASE64 to UTF-8

我的梦境 提交于 2019-12-04 14:56:56
I have a database which stores usernames only in English at the moment. I would like to incorporate BASE64 & UTF-8 in order to store in other languages as well; I want to store it in a column of type NVARCHAR2 . The database procedure receives the name in BASE64 , I'm decoding it via UTL_ENCODE.BASE64_DECODE & converting the string to VARCHAR2 using UTL_RAW.CAST_TO_VARCHAR2 . But I get gibberish back and not the actual word. For example I get 'алекс' as the name in BASE64 . I'm able to decode it but the cast to VARCHAR2/NVARCHAR2 does not return the value: I get only gibberish. I'm running on

Getting ORA-01033: ORACLE initialization or shutdown in progress

别等时光非礼了梦想. 提交于 2019-12-04 13:57:03
问题 Yesterday I installed Oracle 12c Enterprise edition on my laptop. When I tried to connect to DB via SQLPLUS i got the below error C:\Users\USER>sqlplus SQL*Plus: Release 12.1.0.2.0 Production on Sun Feb 28 14:12:46 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. Enter user-name: userdb Enter password: ERROR: ORA-01033: ORACLE initialization or shutdown in progress Process ID: 0 Session ID: 0 Serial number: 0 I tried all the tricks mentioned on internet but couldn't get rid of this

How to use PBKDF2 in Oracle 12c?

馋奶兔 提交于 2019-12-04 13:47:52
问题 We want to save user passwords in Oracle 12c. I found the dbms_crypto -Package but there was no information about PBKDF2. What's the current state in 2017 to use PBKDF2 in Oracle 12c? 回答1: This is a late answer, but to the best of my knowledge Oracle's DBMS_CRYPTO package does not support PBKDF2 natively. That said, you can implement the algorithm yourself; here is one way to do it: CREATE OR REPLACE FUNCTION pbkdf2 ( p_password IN VARCHAR2 , p_salt IN VARCHAR2 , p_count IN INTEGER , p_key

ORA-00119: invalid specification ORA-00132: syntax error

半腔热情 提交于 2019-12-04 12:56:24
Below are outputs from my SQLPLUS startup , LSNRCTRL SERVICES, LSNRCTRL STATUS and TNSPING. Also included are my LISTENER.ORA file, TNSNAMES.ORA and my PFILE. As you can see from the SQLPLUS startup output the database will not startup because init.ora file local_listener is setup as LISTENER and it says its unable to resolve that name. However the LSNCTRL status shows the name of the LISTENER to be LISTENER, so I'm not sure how LSNCTRL utility is seeing the LISTENER and SQLPLUS can't. My guess, is I'm missing something and I'm sure its OBVIOUS and SIMPLE. Any help would be appreciated! ORACLE

@Temporal(TemporalType.DATE) with Oracle 12

有些话、适合烂在心里 提交于 2019-12-04 12:48:25
问题 In our DB we have multiple entities with Date fields. Oracle sees every date as the same, with a date and a time part. JPA entities however distinguish via the annotaton @Temporal. When we want to omit the time part we annotate Date fields with @Temporal(TemporalType.DATE) and Oracle saves 00:00:00, if not, we just leave it without annotation. Example: @Entity public class MyEntity implements Serializable { private static final long serialVersionUID = 1L; @Id private long myentityId;

When “PARTITION LIST SUBQUERY” is in the execution plan something (a bug?) de-instantiates the package

我的未来我决定 提交于 2019-12-04 12:05:58
Is this an Oracle 12c bug? I run 64-bit Oracle 12.1.0.2 on Oracle Linux. Came across a strange thing: when the execution plan switches to using "PARTITION LIST SUBQUERY" then the package used in the affected query is loosing all of its variable's values. It looks like something de-instantiates the package just like after running DBMS_SESSION.RESET_PACKAGE. The query uses a partitioned table which partitions are limited by joining with another table limited using a variable from the package read using a deterministic "getter" function. If I change the function not to be deterministic, or change

Connecting to oracle 12c using Oracle Sql developer (remote)

旧时模样 提交于 2019-12-04 11:50:00
I have been trying to connect to Oracle 12c remotely by using Oracle SQL developer. It shows the below error during connecting to the server : Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection I do can connect to oracle database on the server, but the problem is regarding to connect to this server (database) remotely The content of my listener.ora is : SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = D:\app\ORCLNEWUSER\product\12.1.0\dbhome_1) (PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:d:\app\ORCLNEWUSER

Regarding Users in Oracle 12c

你。 提交于 2019-12-04 06:23:25
I have installed an Oracle 12c database on my system. I had an application which need to access the database. Previously in Oracle 11g, I used the following commands to create an user. create user name identified by name; grant connect,create session,resource,create view to name; Can anyone tell me how to create a user in Oracle 12c with my above requirements? I used the following statements but my installation is showing a fatal error saying FATAL ERROR - java.sql.SQLException: ORA-01950: no privileges on tablespace 'USERS' Following were the statements used. create user c##test1 identified

Error (ORA-21700) with Table Operator after updating to Oracle 12.2 from 12.1

给你一囗甜甜゛ 提交于 2019-12-04 04:55:35
Our Oracle database was recently updated from 12.1.0.2 to 12.2.0.1 + patch set update 20180417. Ever since the update we are getting the following error when calling a plsql procedure: ORA-21700: object does not exist or is marked for delete We have narrowed down the issue and it seems to be caused by using the table operator on an associative array defined within the package. All my research shows that what we are doing was introduced in 12.1 and should still work in 12.2. Below is a simplified version of a procedure that is failing along with the related type definition. It is being called