Created view of the link of database on dg4msql a column type as long
Hi allI read some views of SQL server using dg4msql to Oracle database 11 G r2.
All work fine, except columns that are usually varchar2 are now of type LONG. It is the origin of the issues given the wide range of restrictions of data type long.
Is it possible that when I create a view in Oracle such as:
CREATE or replace view as v1 (
select a1, a2, a3 from msqlserver_table@dblink)
The columns do not come as long but as varchar2 upward?Problem, it is once its long form, I can't change it to a different format in a SELECT statement (as cast as varchar 2 etc.).
Thank you.
Published by: xarg-Xrc on October 3, 2012 19:26
Add these 2 parameters to your gateway init file:
HS_KEEP_REMOTE_COLUMN_SIZE = LOCAL
HS_NLS_LENGTH_SEMANTICS = CHAR
It allows me to describe the nvarchar sunk to the varchar column (4000) in Oracle as varchar2 (4000).
P.S.: Please make sure you open a new connection to gateway (for example to launch SQL * newest) when you have changed a setting gateway as changes in the bridge file are read at the beginning of a new gateway connection handshake.
Tags: Database
Similar Questions
-
Could not create the link of database of the schema of the ORA/APEX
Hello
I tried to create the link of database for my schema oracle on my localhost and it brings me an error "database user has sufficient privileges for the proposed operation.". I don't know what the problem is?
This pattern of localhost was created for APEX.
Thank you
I tried to create the link of database for my schema oracle on my localhost and it brings me an error "database user has sufficient privileges for the proposed operation.". I don't know what the problem is?
This pattern of localhost was created for APEX.
What is developer Sql has to do with the problem? This forum is ONLY for sql developer questions.
If this isn't a problem with Sql developer please mark ANSWERED thread and repost it in the general forum of the database
The exception is you say the problem: the user you are using to create the DB link doesn't have the necessary privileges to create the DB link type you are trying to create. Privileges are required on the source and target databases.
When repost you, you will need to provide:
1. your full 4 DB for DBs source and target text segment
2. a copy OF the sql * plus (or other) session you use to create the DB link
3. information on the user that you use to create the link DB - including the privileges that have been granted to this ulser
4 information on the type of link DB you try to create
-
How can I close the preview in the Adobe Viewer when the LINK on my eMag ist fullscreen? He'll still go to URL and I can not open the preview.
You must change your page design if the link does not occupy the full screen of your content.
Neil
-
Hi where is the link of database previously Windows menu?
Hi where is the link of database previously menu Windows
Removed feature: functionality of server, covers and panels and database components behavior
There is a unique extension to restore these features. Extension is available at: * Vista/Windows 7: C:\Program Files (x 86) \Adobe\Adobe Dreamweaver CC\Configuration\DisabledFeatures * Mac OS X:/Applications/Adobe Dreamweaver CC/Configuration/DisabledFeatures
As seen on http://blogs.adobe.com/dreamweaver/2013/06/a-look-at-the-modernized-dreamweaver-cc.html
Video instructions on how to install these file available here: http://www.youtube.com/watch?v=cB2vmNfcq7A
-
How to create views of data from different databases tables in2
Using Oracle 10.2 g
I have 2 databases Gus and the haggis on schema Comqdhb.
Glink indicates a link of database between Haggis and Gus
In Gus, there is school that contains columns with same name upn, grade, subject, student of tables...
STUDENT
UPN
academicYear
Object
Object
GRADE
examlevel
grade
SCHOOL
SN
In HAGGIS raising tables, grade, teacher containing columns upn... desc below.
STUDENT
UPN
GRADE
grade
UPN
academicyear
level
Create views in your database HAGGIS who join their all the qualities of the review. You should have a point of view that will produce the following relationship:
examGrade (upn, subject, examlevel, sn, rank, academicYear)
So I need to create a view that gets the data from the tables in the databases.
create view as examGrade (upn, subject, examlevel, sn, rank, academicYear) like some s.upn
But I don't get the selection of a column of 2 tables in different databases
I mean if I said
Select the UPN in comqdhb.student@glink,comqdhb.student;
Select the upn name in comqdhb.student@glink,comqdhb.student
*
ERROR on line 1:
ORA-00918: column ambiguously defined
Help me, thank you.Hello
Rider wrote:
The issue is that I can't understand that I should create the view by the union of the haggis and the two gus data or only haggis.
the reason I believe I need to combine the two is mentioned * "" create views in your database schema HAGGIS who join their all the qualities of the review. ". *
By the mention of creating views and who join their all the qualities of the review, it probably means to obtain the data of the GUS and HAGGIS.This is my interpretation of the assignment, too.
If you ask just the tables on Gus, you will get the ranks of three of the four schools: it's not all examination classes.
If you ask just the tables on Haggis, you will get the ranks of any of the four schools: it's not all examination classes.2nd prob is that if have decided to create a view that gets the data from these two gus and therer haggis would be a lot of duplication involved due to the cross product
Why would there be "repetition involved due to the cross-product"?
If the quuery of Gus produces 100 lines, the request of product Haggis 30 rows, then the UNION of the two will have 100 + 30 = 130 lines (assuming, as you say, each student is at school only one).the query I wrote is
Create view examGrade (upn, subject, examlevel, sn, rank, academicYear)
as
Select distinct s.upn as upn, g.subject as topic,
g."LEVEL" as examlevel, g.grade as rank, to_number (g.academicyear) as academicyear
of s comqdhb.student, comqdhb.grade g
s.UPN, sb.subject, g.elevel, g.grade, s.acyr select Union
of comqdhb.subject@glink sb,comqdhb.student@glink s,comqdhb.gradevalues@glink g;You should not write, not to mention not formatted zip code. I have a little time I can devote to answering questions in the forum. Do you want me
b spend this time formatting your code, so I can understand the question, and no time to answer, or
b spend only a little time reading understanding your code and spend most of my time to help you?
I would prefer (b), but the choice is yours.
See the statement that I posted in my last post for an example of the formatted code. You see how it appears in a box with a police fixed-width, and multiple spaces are printed? This is because I typed {code} (all small letters), before and after the section I wanted formatted.At least put each table in the FROM clause on a separate line, so it is easy to know if you have enough join conditions.
If you have N tables in the FROM clause, you almost always have at least N-1 join conditions that specify how the tables are linked together. For example, if talk you about two tables, quality and student, you expect to see a join condition that tells you when you have data in a table, how to find related data in the other table, such asg_gus.upn = s_gus.upn
No no no join conditions will cause "repetition involved due to the cross product.
I downloaded my info here
http://www.upload4free.com/download.php?file=44201983-School_ExamGrades.PDF
http://www.upload4free.com/download.php?file=184648736-ExamGrades_Case_Study_2008FINAL.PDFSorry, if there is data as long as you can't post here, there is much too much for me to read.
Make a sample set, containing a few (maybe five) students and a few shades of each student. It is fine to copy a few lines of your actual data.That's all the time I have for today. I can't wait to get the data and formatted requests.
-
Drop the link of database in oracle 11g
I created a schema with the name of sapsmc which has all the privileges, then I created 1 link of database. Now, I want to drop this database link, but I can't able to drop this error.
«SQL error: ORA-00604: error occurred at recursive SQL level 1 ORA-20101: Sorry, can't remove any object without the permission of live database SAPGateWay.» ORA-06512: at the level of the 5 00604 line. 00000 - 'error occurred at recursive SQL level %s' * Cause: an error occurred during the processing of a recursive SQL statement (a statement applicable to the internal dictionary tables). * Action: If the situation described in the next error on the stack can be corrected, do so; otherwise contact Oracle Support.
Then I tried to delete the user SYS, while doing this that I got below error.
SQL error: ORA-02024: database not found link 02024. 00000 - "database link not found" * Cause: database to remove link is not found in the dictionary * Action: correct the name of the database link
Please help me I appreciate your efforts.
ORA-20101: Sorry, can't remove any object without the permission of live database SAPGateWay.
There is not much we can do about it.
It is an exception defined by the user, probably from a FRONT DROP trigger defined at the level of the database, which prevents people from dropping objects.
Contact, one who is responsible (DBA?) about how to proceed.
-
The status of VIEW after the partitioning of database table.
Hi all
I would like to know the status of the view when I perform range Base table partitioning?
I will be performing these steps below for partitioning:
1 rename the Original base table.
2. create the new partitioned table by naming as the name of the original table.
3. Insert rows in the table of origin for partitioned table.
As per the steps above I am renaming the original base table and the creation of Partitioned table base with the same original name.
VIEWS based on this table refer to new partitioned table with the same name, or what I need to re-create views?
-YasserView makes reference to the NEW TABLE of partitions on the same name... This isn't the problem... If you do not rename delete add column_name.
SQL > create table a1 (identification number);
Table created.
SQL > create view v_a1 in select * from a1;
Created view.
SQL > v_a1 desc;
Name Null? Type
-----------------------------------------
ID NUMBERSQL > alter table rename to a1 to a2;
Modified table.
SQL > v_a1 desc;
ERROR:
ORA-24372: not valid to describe objectSQL > create table a1 (id varchar2 (40))
2.Table created.
SQL > v_a1 desc;
Name Null? Type
-----------------------------------------
ID VARCHAR2 (40) -
Create views on the owner assistance Board different pls
I'm stuck with a problem kindly help me out I want to create a view by selecting certain columns of a table to a different owner. I have the privileges but I am unable to do things.
Select the table table_name from all_tables where owner = "COMQDHB";
annoys me
TABLE-NAME
----------
GRADE
STUDENT
TEACHER
I want to create a view with only grade and student
IAM able create the whole table view
Create view v1 as select table_name from all_tables where owner = "COMQDHB";
but when I try to create the view with the selected columns
Create view v1 as select table_name (grade, student) all_tables where owner = "COMQDHB."
also, I tried to create the view entire table and then removing the teacher column, but I do not know the appropriate syntax.
change the view view_name remove teacher column;Hello
I agree with John and David. What makes you think that there is a table, called table TABLE_NAME?
When you make this request:
select table_name from all_tables where owner='COMQDHB';
and you get these results:
TABLE_NAME -------------------------------------------------------------------------------- GRADE STUDENT TEACHER
tells you that there is a column called TABLE_NAME in the ALL_TABLES view.
(When you perform a query, the result indicates the names of column above the horizontal line and the values below the line).
The TABLE_NAME column contains the values "RANK", "STUDENT" and "TEACHER", which indicates that there are some tables with these names.
If these three lines are the only exit from the query above, these three tables is the only tables belonging to COMQDHB, or at least the tables only three on which you (HAGGIS) have privileges.
I want to create a view with only grade and studentThis point of view:
create view v1 as select table_name from all_tables where owner='COMQDHB';
shows a small subset of data contained in ALL_TABLES.
Your mission is to create two views showing different subsets of the data in the RANK, STUDENT and TEACHER tables, so that they will look something like this:
CREATE VIEW public_info AS SELECT ... FROM comqdhb.grade g JOIN comqdhb.student s ON ... JOIN comqdhb.teacher t ON ... WHERE ...
-
When shopping FireFox does not develop the view from the link under the photo.
When a product has a 'Zoom' or 'Expansion' option, the link does nothing.
None of this has worked. It has screwed up my computer. I had to uninstall FireFox and reinstall it. He also screwed up my RoboForm connections so I had to re - install RoboForm. Then I had to re-activate all my Add-ons. Of course, it took reboot after reboot and frustrated about an hour of analysis. After that everything is now working.
-
Create the link of database error
Hi all
I am trying to create a database link (developer both SQL and Sql * more) and I get the error ORA-00933: SQL not correctly completed command.
Here is the statement:
CREATE DATABASE LINK msrtp CONNECT TO msrtp_user IDENTIFIED BY 62ROLDS USING msrtp;
Yes, the global database name is msrtp and I created links db without any problem.
The problem, it's because the password begins with a number. I have no control on the password and can not change. I tried enclosing in single and double quotes, but it does not work. Is there one way around this other than to change the password?
Oracle 10g
Thank you.Try to put the password in quotation marks. I created a link using quotes around the password and I was able to choose to use it. With 11g and passwords case-sensitive using double quotes may be necessary at least for the mixed case passwords.
HTH - Mark D Powell.
-
Call the DBMS package via the link of database
IM changes on tables using dba_tab_modifications, number of databases, 1 metric scheme in 1 case. to get the latest changes, I have to empty the changes which means I have to exec dbms_stats package remotely. I can do by creating a proc and calling the proc over a database link.
Remote
create or replace procedure flush_db_info
Start
DBMS_STATS. FLUSH_DATABASE_MONITORING_INFO;
end;
local
create synonym remote_flush for flush_db_info@remote
exec remote_flush;
Is there anyway that I can run the DBMS_STATS. FLUSH_DATABASE_MONITORING_INFO@remote on the local to run on the remote control, without creating the proc/synonym?
This is no biggy, I got it working like this, I just want to see is possible
Have you tried?
-
How to create or add the link of the custom help
Hi gurus,
Is it possible to create or add a custom help link next to Diagnostics, disconnection, preferences, help link in all pages?
The idea is to create specific custom help for organizing not generic help.
Kind regards
FerrereHello
ICX_STANDARD_GLOBAL_MENU, this is the menu in which all the standard links to home, logout, are there preferences.
However, you can also create a new custom menu of GLOBAL type and attach the function for this.
Sushant-
-
Create Tables with the project of database offline via command line
Y at - it a there command-line tool that will allow me to deploy database objects that I defined in a project database offline in a target database? Something along the lines of ojdeploy. I want to be able to automate the creation /refresh of my db via the script items if the developers do not have to perform this task by opening jdev.
Thank you
TonyNo, there is no (I answered on one of the other threads duplicate the OTN software is so fond of the creation to the present day)
-
Create views of data from multiple lines in a single column shows
Hi all - it's probably posted in the wrong forum, but I couldn't find that was right.
I'm almost a perfect beginner in sql, but I have a need to create a view that can be expanded to 10g (which effectively runs the volumes are likely to be high) who will do the following.
Authentic table with columns Parent_code, Child_code
Parent_Code Child_Code
1000-2000
1000-3000
1000-4000
2000 3000
2000-5000
(note that Parents may have several children and a child can have multiple parents!)
What I have to finish with in my opinion is the following
Child_Code Parent_List
' 2000 ' 1000 (3).
3000 "1000 (3), 2000 (2)"
' 4000 ' 1000 (3).
"5000 ' 2000 (2)"
Note the number in parentheses is the number of children whose parent's - IE in the original parent a 1000, 3 table lines (one for each child)
This point of view should be used as a quick glance upward (on the children's code) for a report of business objects.
Is there someone who could you PLEASE, PLEASE help me quickly on what I have very little time to find a solution?Hello
You can test these:
select child_code , ltrim(sys_connect_by_path(parent_info,', '), ', ') as parent_list from ( select child_code , to_char(parent_code) || ' (' || count(*) over(partition by parent_code) || ')' as parent_info , row_number() over(partition by child_code order by parent_code) rn from your_table ) where connect_by_isleaf = 1 connect by prior rn = rn-1 and prior child_code = child_code start with rn = 1 ;
select child_code, rtrim( extract( xmlagg(xmlelement("e",parent_info||', ') order by parent_info) , '//text()' ) , ', ' ) as parent_list from ( select child_code, to_char(parent_code) || ' (' || count(*) over(partition by parent_code) || ')' as parent_info from your_table ) group by child_code ;
What you need is called 'chain aggregation '.
See here for the various techniques, including the two above: http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php -
create view does not work with the role of resource
I just upgraded from 10.2.0.1 to 11.1.0.7
the role of resource users could create views on the old database...
now, they can't
ORA-01031 insufficient privileges
I have to give them create it all discovers the system privileges(1) I assume you mean that you gave them the CREATE VIEW privilege. Not CREATE ANY VIEW. The latter would allow them to create a view owned by another user who would be dangerous enough.
(2) it is not related to the role of RESOURCE. It is almost certainly related to the CONNECT role. CREATE VIEW (among other privileges) has revoked the CONNECT role in point 10.2. I don't know why your 10.2 database was working, I guess that you updated from an earlier version, in which case the update may not have removed the privilege correctly (see Metalink: 317258.1).
(3) you certainly don't want to use the CONNECT role or RESOURCES in the application of the production. Were the roles of the sample which have been overloaded with privileges for the various elements of the sample code. You should really create your own roles with of whatever your users must actually rather than using these predefined roles of privileges.
Justin
Maybe you are looking for
-
Last week I changed some of my passwords and now some of the sites that I changed the connection info to no longer keep connect even though I have asked to do. For example, I would ask Gawker sites remember I want to see their sites to view blog that
-
Cannot use the recovery for Satellite M45-S265 disc
I tried using the recovery disk for M45-S265 of my granddaughter. According to the instructions that I'm supposed to put the DVD drive, and then turn off completely the machine. After that, restart and immediately hold down the F12 key, which should
-
direction of the PIN SH68-68-EP
Based on the http://www.ni.com/pdf/manuals/371022k.pdf manual and the wire from the http://digital.ni.com/public.nsf/allkb/DE2D842E545DE64B86256F78006EAB1A map I'M CONFUSED! The colors on the wire map can be trusted? Looking for the manual referenced
-
Can't deal with calibri 11 pt font?
I use windows mail and vista64, have my tools-options-dial-mail police calibri 11 PT. the value. I do not use any mail stationary and sent in HTML format. When writing email, my default 10-point calibri font settings. as soon as I click in the area o
-
BlackBerry Z10 Z10 suddenly unable to receive the mail via Microsoft Exchange
I can send but not receive email through Microsofe Exchange. When I go into the account setting to edit email, I can't 'Cancel' or 'Save' to be stuck there. A pinned the same problem & how to fix it? On the other hand, I can send and receive emails