ORA-01438: how to find the name of the column?
HelloI'm trying to find the column which is causing ORA-01438 when inserting into a table.
The insertion is made by a C program that reads from a socket and written in an oracle 10 g database using Oracle Pro * C.
I tried to identify the column by printing the values (about 250) just before the insert statement is executed, but check these values has been a task heavy and error prone and did not help to correct the mistake (I found a bunch of values which out of reach, but changing these values has not resolved the issue).
Abandon this idea, I tried to track the session to help
(1) DBMS_SYSTEM. SET_SQL_TRACE_IN_SESSION,
(2) DBMS_MONITOR.session_trace_enable/disable and still
(3) change the context name system set events 10046 trace forever, level 12' and;
(4) alter system set sql_trace = true scope = mΘmoire;
DBMS_MONITOR.session_trace_enable only gave me a few tips (the insert statement) in a trace file. But it worked for a simple example of a test database.
When I try to turn on tracing on the database, where the error occurs, then I'm still not able to set SQL_TRACE in V$ SESSION true, even if no error is returned by the statement "DBMS_MONITOR.session_trace_enable". The value of SQL_TRACE in V$ SESSION does not change and I have no idea why. On the test database, it works fine and I can find the trace file in the user_dump_destination directory.
Anyone have any suggestions on how to fix this?
Any help is appreciated.
Thanks in advance!
Just check this:
SQL > conn osama/osama ;
SQL> create table test as select * from scott.dept ;
SQL> select * from test ;
DEPTNO DNAME LOC
---------- -------------- -------------
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
SQL> alter system set events='1438 trace name Errorstack forever,level 10';
SQL> insert into test values (100000000000000000,'osama','JOR');
insert into test values (100000000000000000,'osama','JOR')
*
ERROR at line 1:
ORA-01438: value larger than specified precision allowed for this column
In Trace File :
ORA-01438: value larger than specified precision allowed for this column
Current SQL statement for this session:
insert into test values (100000000000000000,'osama','JOR')
Tags: Database
Similar Questions
-
How to find the column column_name from data_dictionary views
Hi all.
I have 60 + views, and I need to create a join based on those views.
I'm looking for the name of the column of the data_dictionary so that I can write a script to write the SQL code to create the view to join?
Something equivalent to user_tab_columns?
I don't see that there is a user_view_columns?
-Thanks for all the helpView columns are user_tab_columns and all/dba_tab_columns.
-
How to find the name of the Oracle database server?
People,
Hello. I installed Oracle Database 11 g 2 OS Oracle Linux 5. The installed directory is/home/user/OracleDB_Home and/home/user/OracleDB_Base.
Host name is "mylinux". Name of the database instance is PT853.
I use "mylinux" as the name of the database server, it does not work. I use another way to do as below:
Export ORACLE_HOME = / home/user/OracleDB_Home
Can I use "mylinux ORACLE_HOME" as the name of the database server, it does not work either.
My question is:How to find the name of the database server Oracle with Oracle Linux 5 OS?
Thank you.You must learn the basic of database Oracle.
Please don't regard it not same as SQL server in terms of configuration.
You never specify the database server name in Oracle.
You specify the host name in only two places, 1) Tnsnames.ora/JDBC/ODBC (or any client you want to connect) and listener.ora) 2.
There was nothing called specify the name of the Oracle database from an oracle database server.
Concerning
Anurag.
-
How to find the book, THE, Op units, Org (All) names and ID?
How to find the book, THE, Op units, Org (All) names and ID?
With regard to:
Mr. Shahzad Saleem
Please run the following query
SELECT gl.NAME ledger_name, hou.NAME operating_unit_name,
xep.NAME legal_entity_name
Gl_ledgers gl, hr_operating_units hou, xle_entity_profiles xep
WHERE gl.ledger_id = hou.set_of_books_id
AND hou.default_legal_context_id = xep.legal_entity_id
-
How to find the session killed and computer name
Hello
At the time of the batch run killed .somebody this session without me knowing how to find the user particular db level or oslevel .de name which machine they killed how know at the OS level. but when I put the audit_trail = os only user SYSDBA activities are not checked the other activities of the user.
The server is AIX and db version 11i provide the query for conclusion or os level.
Thank you
DBC.
Published by: dbc001 on March 26, 2013 21:48check with who ever is privilleges to kill these perticluar session, if you have few users.
It is not possible to findout without verification or error info... etc.
Otherwise, restart these jobs perticluar and follow closely. -
How to find the name of a column in a table
Hi all
I have a Table that contains approximately 100 columns.
I need to find the column name, to find in specific columns containing data like 'abc '.
Ex: I have a table like temp_table_name
the columns are col1, col2, col3, col4, col5, col6, col7, col8,.... col99
I'm looking for with data specific like 'abc '.
Need to find the name of the table column that contains data of 'abc '.
Please suggest me. How to find in a single query... :-)
Actually I'm looking through a column of the table as below
Select count (*) in the temp_table_name where col1 = 'abc '.
FOR I IN 1.20 LOOP
ln_num_of_rows: = 0;
lv_column_name_search: = "col" | I have;
lv_sql: = ' select count (*) in the temp_table_name where ' | lv_column_name_search | "= abc";
EXECUTE IMMEDIATE lv_sql INTO ln_num_of_rows;
IF ln_num_of_rows > 0
-column found in lv_column_name_search
EXIT;
END IF;
END LOOP;
But I'm gettig performance problem.
How can I do this in any other alternative way? could you suggest any way possible as soon as POSSIBLE.It's probably never going to be effective - realistic, you have to scan completes the picture.
You could probably improve a little things by doing something like
SELECT DISTINCT column_name FROM ( SELECT (CASE WHEN col1 = 'abc' THEN 'col1' WHEN col2 = 'abc' THEN 'col2' WHEN col3 = 'abc' THEN 'col3' ... WHEN col20 = 'abc' THEN 'col20' ELSE NULL END) column_name FROM table_name WHERE col1 = 'abc' OR col2 = 'abc' ... OR col20 = 'abc' )
but it's never going to be incredibly fast.
Justin
-
How to find the position of the VI icon currently run on the block diagram of the appellant
Dear forum,
I am currently trying to use a LabVIEV VI as a simple sequencer: several (very slow) actions must run one after the other. Each action is represented by a Sub - VI, some actions are executed several times. My task is to view the Subvi somehow executing.
My first intention (just manipulate the icon of the VI running with 'Icon.Get VI as Image data' / 'Icon.Set VI of Image data' invoke nodes) has failed, because it changes all instances of the VI icon. If you use the same VI several times, all these VI icons are changed (see here: http://forums.ni.com/t5/LabVIEW/How-to-change-animate-icon-of-currently-running-VI/m-p/3120754/highl... )
My current approach is to use an image of the block diagram (with "VI: block diagram: get resized Image ' call method) in a picture of the front panel control and working within this control. But for this I need to know the position of the icon of the VI running. I know that I can assess the limits and Position via the properties GObj, but how to find the VI running (note that a VI can be installed several times on the block diagram, so the name of the VI is not unique)? IMHO the easiest way might be if a VI might find its icon on the block of the appellant diagram itself when it is run...
It is clear that this position is not yet the position on the photo, but this conversion is a small piece of work...
Kind regards
cpschnuffel
-
Does anyone know how to find the ip address of someone who is to be a nuiscance?
Does anyone know how to find the ip address of a person who uses different names to communicate with you. A member of the family has problems with someone who does this. Thank you in advance, I know one of the guys will help me.
Hi, Ros,
Use the e-mail headers
-
How to find the snid? If it is removed or deleted from this sticker on the back?
How to find the snid and sn & id of the laptop if it is removed or deleted this sticker on the back?
My laptop is acer ferrari 1000
Tools Information as SIW system reports the product name and serial number IF this information is stored somewhere in the computer.
I don't know what you mean by 'id', but for example, all the following values are reported by SIW:
Manufacturer
Name of the product
Version
Serial number
Type of machine
Infrared (IR) supported
DMI system UUID
UUID -
How to find the path of a file
Hello
I have Windows 7 Starter.
The search utility can be used to search for files by using the ' * ' wildcard, but unfortunately it does not show the path for no results.
I would like to know how to find the path of a file of my choice.
For example, I record a radio on the internet, which is then saved as "MP3". Now, I want to edit such a file, but I need to know where the file is actually stored. Simply access within a 'library' does not show me where the file is actually located.
How to discover all paths where a particular file format?
I hope to receive a response to this request.
Kind regards
Rayt333
An option for the search utility see the paths for all of its results, would be useful.
Hi Ray
Overall view for the search folder for Detailsof Windows Explorer , by using the View Menu on the right side of the toolbar.
Click on the last name column heading and select the folder item.
If you do not see the folder item, click other, scroll and select the folder item. This will add the folder column.
Use the left mouse button to drag the folder column to the left, next to the column name .
Now, when you perform a search, the folder column will show the path of each file found.
Concerning
-
How to find the location of a file or folder in windows 7
I have a few games on my computer. I can't find the location of the original file for them however. What I find is that they are in the 'games' folder that is included with windows 7. However, the whole files are not there. Only a little bit of information for the game is stored here. What I need to know is: how to find the original location? I tried the search bar "search programs and files" under the start menu, but the only place that appears is the Games folder. I need to know this, because I want to try modding my game called "Civilization 4. Can you please help?
Try this...
Start button > in the search box, type the name of the gam, i.e. of Civilization 4 > (do NOT press enter) > top left corner, you see the name "Civilization 4 '?
If so, right click on it > click Open File Location > the game exe file show be on the highlighted list > right click it > click on create a shortcut.
Happens to you?
-
How to find the 'society of the IP '?
Hi all.
I am beginner Eloqua10, and I have a question.
Could you tell me how to find the 'intellectual property society '?
('Intellectual property society' is the name of the company Eloqua derived from the IP address of the visitor).
I guess that there is a 'society of IP"in a preview, but I couldn't find that.
Please help me.
Regards ,
Matsui
Hi Matsui,
The field you are looking for, is a field of account.
When you select fields in reports, then select 'IP address of the company' in the areas of account.
I guess it could help you.
Kind regards
Eloqua Expert
-
How to find the ID of the existing contact?
I need to update an existing contact in Eloqua, but to do that I need to find the ID of the contact.
I know how to get the ID of the contact after it is created the first time, but once it is already created how to find the code.
How do I do that?
Here is my code that I use to update, I just need to solve for '?
EloquaAPI. DynamicEntity [dynamicEntities] = new EloquaAPI. DynamicEntity [1] ;
dynamicEntities [0] = new EloquaAPI. DynamicEntity ();
dynamicEntities [0]. EntityType = entityType;
dynamicEntities [0]. Id = "???";
dynamicEntities [0]. FieldValueCollection is new EloquaAPI. DynamicEntityFields ();
dynamicEntities [0]. FieldValueCollection.Add ("C_GUID1", GUID);
dynamicEntities [0]. FieldValueCollection.Add ("C_FirstName", FirstName.Trim ());
dynamicEntities [0]. FieldValueCollection.Add ("C_LastName", LastName.Trim ());
dynamicEntities [0]. FieldValueCollection.Add ("C_EmailAddress", Email.Trim ());
dynamicEntities [0]. FieldValueCollection.Add ('C_Type1', 'Contact');
EloquaAPI. UpdateResult [] result = service. Update (dynamicEntities);
Joey
Hi Joey,
If you do not already have the id of the contact, then you will need to use the. Function Query() to get it – most commonly ask you based on the email address. For this call API documentation is here:
The example code in this page is not large (without having to download the entire sample application), but here's a basic use (VB.net):
Dim contactId As Integer = 0
Dim etContact As New ELQService.EntityType
etContact.Type = 'Base '.
etContact.Name = "Contact".Dim result = are. Query (etContact, "C_EmailAddress ="[email protected]"", {"Id"}, 1, 50)
If result. TotalRecords > 0 then contactId = result. Entities (0). IDChris
-
How to find the age of a child and snapshot number snapshot for a virtual machine.
Hi all
How to find the age of a snapshot for a virtual machine child count and snapshot.
This code snippet should help... Assuming that you have the following entries:
VM (VC:VirtualMachine)
snapshot (VC:VirtualMachineSnapshot)
System.log("====== Snapshot details for VM: "+snapshot.config.name+" ======"); var snapshotTrees = vm.snapshot.rootSnapshotList; System.log("Snapshot Tree Count: "+snapshotTrees.length); for each (snapshotTree in snapshotTrees){ showSnapshotInfo(snapshotTree, snapshot); } function showSnapshotInfo(snapshotTree, selectedSnapshot){ if(selectedSnapshot == snapshotTree.snapshot){ System.log("===================="); System.log("Name: "+snapshotTree.name); System.log("Id: "+snapshotTree.id); System.log("Description: "+snapshotTree.description); System.log("createTime: "+snapshotTree.createTime); System.log("quiesced: "+snapshotTree.quiesced); System.log("replaySupported: "+snapshotTree.replaySupported); System.log("backupManifest: "+snapshotTree.backupManifest); System.log("snapshot id: "+snapshotTree.snapshot.id); System.log("state: "+snapshotTree.state.value); var childSnapshotList = snapshotTree.childSnapshotList; if(childSnapshotList != null){ System.log("childSnapshotList length: "+snapshotTree.childSnapshotList.length); } System.log(""); } if(snapshotTree.childSnapshotList != null){ System.log("Children found: "+snapshotTree.childSnapshotList.length); for each (childSnapshotTree in snapshotTree.childSnapshotList){ showSnapshotInfo(childSnapshotTree, selectedSnapshot); } } }
During the passage of one of my virtual machines, here is an example of output I get:
[2014-06-12 15:19:21.493] [I] Snapshot Tree Count: 1 [2014-06-12 15:19:21.493] [I] ==================== [2014-06-12 15:19:21.494] [I] Name: before upgrade to 5.0.1 [2014-06-12 15:19:21.494] [I] Id: 31 [2014-06-12 15:19:21.494] [I] Description: [2014-06-12 15:19:21.495] [I] createTime: Mon Mar 19 2012 13:48:57 GMT-0400 (EDT) [2014-06-12 15:19:21.495] [I] quiesced: false [2014-06-12 15:19:21.495] [I] replaySupported: null [2014-06-12 15:19:21.495] [I] backupManifest: null [2014-06-12 15:19:21.496] [I] snapshot id: snapshot-83 [2014-06-12 15:19:21.496] [I] state: poweredOff [2014-06-12 15:19:21.496] [I] childSnapshotList length: 1 [2014-06-12 15:19:21.496] [I] [2014-06-12 15:19:21.497] [I] ==================== [2014-06-12 15:19:21.497] [I] Name: Before 5.1 upgrade [2014-06-12 15:19:21.497] [I] Id: 36 [2014-06-12 15:19:21.497] [I] Description: [2014-06-12 15:19:21.498] [I] createTime: Fri Sep 21 2012 21:59:58 GMT-0400 (EDT) [2014-06-12 15:19:21.498] [I] quiesced: false [2014-06-12 15:19:21.498] [I] replaySupported: null [2014-06-12 15:19:21.498] [I] backupManifest: null [2014-06-12 15:19:21.499] [I] snapshot id: snapshot-84 [2014-06-12 15:19:21.499] [I] state: poweredOff [2014-06-12 15:19:21.499] [I] childSnapshotList length: 1 [2014-06-12 15:19:21.499] [I] [2014-06-12 15:19:21.500] [I] ==================== [2014-06-12 15:19:21.500] [I] Name: Before Named Instance [2014-06-12 15:19:21.500] [I] Id: 37 [2014-06-12 15:19:21.501] [I] Description: [2014-06-12 15:19:21.501] [I] createTime: Mon Nov 11 2013 13:40:46 GMT-0500 (EST) [2014-06-12 15:19:21.501] [I] quiesced: false [2014-06-12 15:19:21.501] [I] replaySupported: null [2014-06-12 15:19:21.502] [I] backupManifest: null [2014-06-12 15:19:21.502] [I] snapshot id: snapshot-236 [2014-06-12 15:19:21.502] [I] state: poweredOff [2014-06-12 15:19:21.502] [I]
-
How to find the location of a cluster?
If I have a Cluster123 cluster name. How to find the location of this cluster? for example, YellowFolderA/YellowFolderB/Cluster123
Try something like this
$clusterName = "MyCluster" $path = @()$cluster = Get-Cluster -Name $clusterName$parent = Get-View $cluster.ExtensionData.ResourcePoolwhile ($parent.parent){ $parent = Get-View $parent.parent $path += $parent.Name}[array]::Reverse($path)[string]::Join('/',$path)
Maybe you are looking for
-
I simply display an item in a store, but is not available in the United States, but in the Canadian store instead. What happens if I change country store to display the item, even if I'm not in the Canada.
-
During the download, the download window Panel is not displayed
Download Panel not always window, downloading updates, i.e., Adobe, etc. There are opinions a bit at the bottom of the screen that shows the downloads are complete, but then it disappears. I have to manually go into the download folder to find the up
-
DV7-4273us wireless and other software problems.
I did a clean install of Windows on a HP Dv7-4273US and he has a radio wireless broadcom in it, but according to the support of HP site for this model, there is no. Well, I found the driver for the broadcom wireless radio, but whenever I start the c
-
Can anyone help?
-
Windows 7 update for driver installation windows device update hp950c does not work
I have a 959c HP printer. He has worked in the past when I managed to get the updates, although she saud there is a problem with the driver installation. This time however, I can't update windows to find the list of devices online and update. I tr