oracle12c

Stuck Call to undefined function oci_connect() using XAMPP

你离开我真会死。 提交于 2019-12-22 08:12:20
问题 i'm want connect PHP to Oracle Database 12c, i'm already try in this video https://www.youtube.com/watch?v=KJme5JMxKeo i'm already install xampp v3.2.2 and using PHP 5.6 install oracle database 12c : http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html test login in SQLPlus unzip and paste Instant Client(Version 12.1.0.2.0) http://www.oracle.com/technetwork/topics/winsoft-085727.html to directory C set path environtment C:\instantclient_12_1; uncoment semicolon (

Visual Studio ODP Unmanaged Driver - Failed to find the default tnsnames.ora file (12c )

送分小仙女□ 提交于 2019-12-22 05:35:39
问题 I'm developing an app in Visual Studio 2013 that connects to a Oracle Database. I have to use the "Unmanaged Driver". When I'm trying to create a new connection in a dataset, when I chose the "Managed Driver" all work fine: the tnsnames.ora is found. But when I select the "Unmanaged driver" all fails, it send me a message like " Failed to find the default tnsnames.ora file" I already - Uninstalled all old Oracle Clients - Clean all environment variables - Reinstalled Oracle client, ODP tools

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

天涯浪子 提交于 2019-12-21 20:25:38
问题 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

PLSQL decode NVARCHAR2 from BASE64 to UTF-8

孤者浪人 提交于 2019-12-21 19:54:48
问题 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

Valid GROUP BY query doesn't work when combined with INSERT INTO on Oracle

ぐ巨炮叔叔 提交于 2019-12-21 03:59:18
问题 I'm trying to write an INSERT INTO that does a some DISTINCT/GROUP BY work. The query runs perfectly fine as a select statement, but will not work if it's wrapped into an INSERT INTO. INSERT INTO MasterRecords (BatchRecordRecordID, SourceID, BatchID) SELECT RecordID, SourceID, BatchID FROM ( SELECT RecordID, BatchID, 101 AS SourceID FROM BatchRecords WHERE BatchID = 150 GROUP BY RecordID, BatchID ) BR This earns me: SQL Error: ORA-00979: not a GROUP BY expression But if I remove just the

Why many tables ORACLE default 12c?

本小妞迷上赌 提交于 2019-12-20 02:49:24
问题 Creating a new database (basic and advanced), It's my first time dealing with Oracle, in which I do not know why so many tables, triggers, views and other objects when only wanted to create a relational data base empty. Is there another way to do this or is there something I missed understand? Thank you. Capture: 回答1: Those objects are owned by SYS user. You could verify it using following query: SELECT * FROM DBA_OBJECTS WHERE OWNER = 'SYS'; To see the objects owned by other users, see:

How to implement multidimensional sequences

 ̄綄美尐妖づ 提交于 2019-12-19 10:28:06
问题 For example, here is a yearly sequence. The no increments with year : | no | year | +----+------+ | 1 | 2016 | | 2 | 2016 | | 3 | 2016 | | 1 | 2017 | | 2 | 2017 | | 4 | 2016 | For now I have created sequence for each year but the problem is Oracle will not automatically create new sequence in next year. Another problem is if I want to use a 3D sequence, incrementing within year and type : | no | year | type | +----+------+------+ | 1 | 2016 | a | | 2 | 2016 | a | | 1 | 2016 | b | | 1 | 2017 |

Oracle Query - Join with comma separated data

ぐ巨炮叔叔 提交于 2019-12-19 09:56:08
问题 Table Name : crm_mrdetails id | mr_name | me_email | mr_mobile | mr_doctor| ----------------------------------------------------- 1 | John |abc@gmail.com | 1234555555 | ,1,2,3 | Table Name : crm_mr_doctor id | dr_name | specialization| ---------------------------------- 1 | Abhishek | cordiologist | 2 | Krishnan | Physician | 3 | Krishnan | Nurse | The concatenated values in mrdetails.mr_doctor are the foreign keys for mr_doctor.id . I need to join on them to produce output like this: id | mr

Oracle : Export select statement result set as INSERT SQL Statements similar to SQL developer export

流过昼夜 提交于 2019-12-19 08:54:41
问题 I am looking for a solution to create the SQL INSERT statements using PL/SQL script for the select statement result set. Looking for similar feature available in the SQL Developer tool (export --> format insert) but I want the solution as script rather than using any tool(s). I have referred the below solution. However, I would like to know whether any better way to do it as the solution is old and not very simple. EXPORT AS INSERT STATEMENTS: But in SQL Plus the line overrides 2500

SQL Error: ORA-02000: missing ALWAYS keyword when create identity column based table

ⅰ亾dé卋堺 提交于 2019-12-18 12:06:13
问题 I try to create an auto incremented column on a table and as I see in this post there are 2 ways, the second implementation with the Identity column is a more elegant solution, but when I try to implement it I get the following error: Error at Command Line : 3 Column : 31 Error report - SQL Error: ORA-02000: missing ALWAYS keyword 02000. 00000 - "missing %s keyword" Actual table script implementation: CREATE TABLE "PLATFORM"."AUTH_PERMISSION" ( ID NUMBER(19,0) GENERATED BY DEFAULT ON NULL AS