Oracle

Win Form: ORA-12154: TNS:could not resolve the connect identifier specified

柔情痞子 提交于 2021-01-29 03:27:16
问题 I create a simple Win Form application. However I am getting the error: ORA-12154: TNS:could not resolve the connect identifier specified I have an Oracle connection setup. I verified this by connecting to the database via the Server Explorer. (Connect to DB). I know it's something trivial that I'm missing. I am using Oracle Managed Driver that I downloaded from Nuget. I suspect it can't find my TNS setting. How do I verify that? Simple code: string connString = "Data Source=qqqqq;User Id

Win Form: ORA-12154: TNS:could not resolve the connect identifier specified

瘦欲@ 提交于 2021-01-29 03:23:51
问题 I create a simple Win Form application. However I am getting the error: ORA-12154: TNS:could not resolve the connect identifier specified I have an Oracle connection setup. I verified this by connecting to the database via the Server Explorer. (Connect to DB). I know it's something trivial that I'm missing. I am using Oracle Managed Driver that I downloaded from Nuget. I suspect it can't find my TNS setting. How do I verify that? Simple code: string connString = "Data Source=qqqqq;User Id

how to pass object type as a parameter in oracle

早过忘川 提交于 2021-01-29 02:33:09
问题 below abstarct type created create or replace TYPE callbck as table of callback_t; abstract table create or replace TYPE CALLBACK_T as object ( url varchar2(50), uri_key number, ); below is the procedure used, procedure get_callback_info ( pi_clbk callbck := callbck (), requestor varchar2, msg varchar2) how to pass the parameter for the abstract object type to the procedure get_callback_info. i have the abstract values 'http://test.com', and 1345 as the url and uri_key 回答1: Say you have these

Configure mybatis to use an existing connection

痞子三分冷 提交于 2021-01-29 01:00:25
问题 I want to set up a connection between my application and a Oracle database. I do not have the following database information: URL user name password What I can retrieve is a valid java.sql.Connection by using the API provided by Blackboard. Is it possible to set up mybatis in this case? I am using the configuration shown below: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">

Configure mybatis to use an existing connection

独自空忆成欢 提交于 2021-01-29 00:49:45
问题 I want to set up a connection between my application and a Oracle database. I do not have the following database information: URL user name password What I can retrieve is a valid java.sql.Connection by using the API provided by Blackboard. Is it possible to set up mybatis in this case? I am using the configuration shown below: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">

Configure mybatis to use an existing connection

荒凉一梦 提交于 2021-01-29 00:41:48
问题 I want to set up a connection between my application and a Oracle database. I do not have the following database information: URL user name password What I can retrieve is a valid java.sql.Connection by using the API provided by Blackboard. Is it possible to set up mybatis in this case? I am using the configuration shown below: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd">

oracle hierarchical query start clause from join

笑着哭i 提交于 2021-01-29 00:14:00
问题 i have a table which contains user_rights on folders. Considering that rights are inherited on folder hierarchy, having right on a folder give right on any child folders. rights RIGHTS: USERID FOLDERID --------------------- 685 5534 685 5538 686 5162 686 6343 686 28568 686 41578 725 113867 725 127030 FOLDERS: FOLDERID PARENTFOLDERID ---------------------------- 5534 5538 5534 5162 5534 6343 5162 28568 5162 41578 5534 113867 41578 127030 41578 i need a list of all couple user/folder rights. I

oracle hierarchical query start clause from join

大憨熊 提交于 2021-01-29 00:13:07
问题 i have a table which contains user_rights on folders. Considering that rights are inherited on folder hierarchy, having right on a folder give right on any child folders. rights RIGHTS: USERID FOLDERID --------------------- 685 5534 685 5538 686 5162 686 6343 686 28568 686 41578 725 113867 725 127030 FOLDERS: FOLDERID PARENTFOLDERID ---------------------------- 5534 5538 5534 5162 5534 6343 5162 28568 5162 41578 5534 113867 41578 127030 41578 i need a list of all couple user/folder rights. I

Unable to select from SYS.TABLES - Table or View does not exist

核能气质少年 提交于 2021-01-28 22:54:52
问题 I read that USER_TABLES is tables which you own ALL_TABLES is tables which own, and tables owner by other users, which you have been granted explicit access to DBA_TABLES is all tables in the database All three are views of the underlying SYS tables Based on the above and mention of SYS.TABLES in the Oracle Docs, I tried to select * from SYS.TABLES; but it resulted in an error that the table or view does not exist. I tried as both SYS and another username. Question 1: Is SYS.TABLES a valid

Column definition incompatible with clustered column definition

老子叫甜甜 提交于 2021-01-28 22:03:47
问题 I have created a cluster in Oracle CREATE CLUSTER myLovelyCluster (clust_id NUMBER(38,0)) SIZE 1024 SINGLE TABLE HASHKEYS 11; Than a table for the cluster CREATE TABLE Table_cluster CLUSTER myLovelyCluster (columnRandom) AS SELECT * FROM myTable ; the columnRandom is well defined as NUMBER(38,0) but why I am getting an error assuming incompatible column definition? Thanks 回答1: Are you sure that columnRandom is number(38,0)? In oracle NUMBER != NUMBER(38,0) Let's create two table. create table