SQL Dev converts MS SQL to Oracle - issue with numeric prefix column name
Hi,
We're working on migrating MS SQL data into Oracle 10g. An issue we encountered is that some of MS SQL's tables have column names with numeric prefix like 1Q07, 2Q07, ..., 4Q08, and so on. The converted model as well as script can be created. But one thing I notice is that SQL Dev appends a prefix "A" for column names with numeric prefix. This makes sense because Oracle does not allow a column with number. But somehow this does not work with only 4Q
1Q04 => A1Q01
2Q07 => A2Q07
3Q08 => A3Q08
4Q08 => 4Q08 ???
Why? Any place in the tool where I can override this?
Obviously I can manually modify column name 4Q08 to A4Q08 in the script. But by doing this when moving data, it would fail because tool has no knowledge of updated column name.
Thanks in advance.
Hi ittichai,
In <repository>.MIGRATION_TRANSFORMER body
FUNCTION first_char_check(p_work NVARCHAR2) RETURN NVARCHAR2
v_allowed := C_DISALLOWED_CHARS || '012356789_$';
should be
v_allowed := C_DISALLOWED_CHARS || '0123456789_$';
If you make this change and convert the 4Q08 will be
A4Q08 is expected, without any manual rename.
-Turloch
Message was edited by:
Turloch O'Tierney
Similar Messages
-
SQL Query issue with large varchar column
I have a SQL Query (PL/SQL function body returning SQL query) which contains a large varchar column. Even if I substring the column to 30chars when it displays on the page it wraps. I have tried putting nowrap="wrap" for the HTML table cell attributes and it still wraps. I have tried setting the width attributes on the column even though it's not an updateable column. Does anyone have any ideas on how prevent this from wrapping. In some cases 1 line will take up 3 because of this wrapping issue and it's not nice to look at. It seems that the column is somewhere set to a fixed width, which is less than 30 characters, and anything beyond this fixed width wraps.
Hi Netha,
Can you please provide the DDLs of three tables you are using,
Also post us how many rows you are getting output for this query?
select * from dim.store st where
st.store_code = 'MAUR'
also try to run and update statement on this table as below and execute your query
update dim.store
set store_code
= ltrim(rtrim(store_code))
where
store_code = 'MAUR'
once you run this update, then run your query. Let us know the result. -
Issue with renaming the package name from "Oracle" to "oracle" in windows
Hi all,
I created a project in which initially I created all the jsffs in a package Oracle/communications. In one of the jsff pages(a.jsff) I have include tag <jsp:directive.include file="/*Oracle*/communications/b.jsff"/>
But later I refactored the code and renamed the package to oracle/communications and I modified the include tag to <jsp:directive.include file="/*oracle*/communications/b.jsff"/>
But after that change also when I deploy the ear and try to access the a.jsff, I am getting the file not found exception.
Root cause of ServletException.
oracle.jsp.parse.JspParseException:
/adflib/oracle/communications/a.jsff: Line # 19, <jsp:directive.include file="/Oracle/communications/b.jsff" xmlns:jsp="http://java.sun.com/JSP/Page"/>
Error: Include file not found: /Oracle/communications/b.jsff
Do I need to change any other configuration file?
The same ear when deployed in linux is working absolutely fine.
Thanks in advance,
VamsiWindows doesn't know the difference between upper case and lowercase file names. So renaming Oracle to oracle will not change the file name.
To change the file name you have to rename it from Oracle to xxoracle and then to oracle.
Timo -
Issues with extended chars in names
Are there any known issues with this API when either the eDir name or GW
name contains extended chars? I'm encountering numerous problems creating
users and modifying settings (e.g. visibility) with the 8.0.1 client with
both the 7.0.3 and 8.0.1 backends, after a customer reported issues when
using the 8.02hp1 client.
TIA, JohnI have a system with 2 cRIO's each with Ethercat extension chassis. Each cRIO hosts ~100 NSV's and is running the scan engine at 40 Hz.
Each cRIO is coupled to a HMI that has front panel control bindings to NSV's hosted on the cRIO as well as a windows hosted mirror library (used for citadel db logging) that is also bound to the cRIO NSV library. The cRIO's have monay months of contiguous run time without reboot and I closely monitor cpu and memory usage and also rt performance metrics and will log faults if there are any such events. I also use NSV's for messaging from the HMI to the cRIO for such things as setting zero offset values and deploying configuration parameters. My overall findings are that the SV engine and the PSP are stable and efficient (especially NSV<->NSV and NSV<->HMI binding) -
SQL Dev early adopter 4.0 r2 issues
1. On code templates. I added my own code template (tools -> preferences -> Database + Sql Editor Code Template)
Clicked OK tested template it worked. Went back in to add others. All of the templates were gone. Pretty sure this is a bug.
2. We still can't edit sql results? Isn't this the most requested feature?
Don't mean to complain about free lunch, but I guess I did1. I'm in what will be EA3 and that's not happening there. We did make a minor change in the Code Templates behavior, but not the code templates storage. I'm wondering if your file got corrupted somehow...
2. Correct. Also correct. But just because it's a popular request doesn't mean we're necessarily going to implement it. -
Oracle, Issue with Multiple transaction from two nodes.
Hi All,
Below is the scenario ,that we are encountering.
We have Client which is RAC modelled having Node1 and node2 and the server having primary and secondary nodes.
From Client we are getting multiple transactions at a rate of nano-milliseconds to the server.
Our code setup:
1) Requests would be fired from client for either insert or update into DB to a Table(Table_A).
If record exists, we are going for update or else we are inserting.
Table Structure:
Table_A Table has Primary key on Account_id
Our Scenario is that
Scenario 1:
a) Database is verifying ,if the data exists in table.
b) Data not available(record count=0) in the table and as per functionality it goes for insert query.
c) Before commit occurs, another requests comes in and checks in table for data existence.
d) Since commit is yet to happen, the count on table is ZERO and hence the second request is also coming as INSERT.
e) Since two insert on same record comes in, Unique Key Constraint Violation error is been triggered.
Scenario 2: We tried to simplify the above process by using Merge option In Oracle. But even that is not solving our concern.
ThanksScenario 1 - you will probably have to perform some sort of locking to prevent this issue. However, doing so will hurt scalability.
Scenario 2 - your situation sounds perfect for the MERGE statement. Can you provide more details on "But even that is not solving our concern."? What are you doing and what are you seeing?
Also, post your version.
Cheers,
Brian -
ERP 6.0 EHP4 SR1 Upgrade Unix Oracle issue with /STARTUP
We are in the process of doing an ERP 6.0 EHP4 SR1 Upgrade Unix Oracle Upgrade. We have ran into a problem running the /STARTUP, we are using the Upgrade Master DVD 51036889 as well as have down loaded it from service market place and jce_policy-1_5_0.zip as well as the one on SAP service market place. When we execute the command /STARTUP jce_policy_zip=jce_policy-1_5_0.zip the job starts and runs down to where the controller for port 4241 starts and then hangs. If we control C out and go to the /usr/sap/SID/upg and run /STARTUP it runs all the way through setting up both 4241 controller and 4239 controller, we then go to the web browser and launch the Gui => logon as administrator => upgrade roadmap screen pops up it is set on the initialization phase we hit next and nothing happens after that, we don't get the ABAP tab or the progress bar. We would appreciate any help.
Hi Jerry,
The first time you run STARTUP its run from the NW7 EHP1 SR1 DVD. Just wanted to confirm that your running it from this DVD. This extracts and setups your /usr/sap/<SID>/upg directory. It sounds like this directory hasn't been setup correctly which is why your not seeing anything when you login to the GUI.
Can you confirm that you got your JCE files from SWDC -> SAP Cryptograpic Software ?
OSS Note - 1240081
http://service.sap.com/swdc > Download > SAP Cryptographic Software
I had to use the JCE file from here to get my upgrade to work. What OS are you on?
Hope this helps.
Cheng -
Issues to pass a column name as parameter. please advice.
hi all,
i have some difficulty with oracle reports. i'm a novice with 2 days beginner knowledge.
i am not able to use lexical parameters in reports. my query is simple like
select &col_name abc from xyz;
i have tried making a parameter before creating the SQL but still i recieve the error saying that ORA-00922: missing expression.
also i have tried with bind variables like
select :col_name abc from xyz;
but it gives a :col_name inplace of the records data.
could some help me with step by step procedure for creating a lexical parameter.
i am using reports 6i.
please let me know for any details required.
thanks in advance!!!When I create a lexical, I simply type in the SQL:
select
&lp_column_name
from table_x;Save the sql, then the lexical parameter will be automatically created. After that you can specify what lp_column_name means, by specifying its value in the Before Report trigger. You'll probably have something like this in the PL/SQL editor:
begin
if :p_column_name is not null then
:lp_column_name := :p_column_name;
end if;
end;where :p_column_name is one of the input parameters when user runs a report in Oracle Applications. -
Filter issues with hidden/visible columns on a table
OK, 1st post to this forum:
This is based on:
http://labs.adobe.com/technologies/spry/samples/data_region/SpryPagedViewSample.html
I have a contact list that has contact info on it (office
phone, home phone, cell phone, etc). There are several hundred
entries in the .xml file. As a default, I am putting the contacts
in a table that has the office phone and email address visible, and
the other info hidden. I have a "ShowDetail" checkbox that will
allow the hidden columns to be visible and vice versa by using the
addClassName and removeClassName.
The issue I have, is that when you start typing in an contact
name when the checkbox is checked, the table flashes the correct
info up with the columns visible, but then the HTML is rendered and
the Hidden class is reassigned to the columns.
Is there anyway to run the javascript function that toggles
the class after the HTML is rendered based on the checked status of
the checkbox? Thanks for any help!Thanks for the reponse. However here is the syntax I need to edit
SELECT u.user# as "UID",
lower(u.name) as owner,
lower(t.name) as table_name,
col.col# as column_id,
lower(col.name) as column_name,
decode(col.type#,
1, 'varchar2',
2, decode(col.scale,
null, decode(col.precision#, null, 'number', 'float'),
'number'),
8, 'long',
9, 'varchar',
12, 'date',
23, 'raw',
24, 'long raw',
69, 'rowid',
96,'char',
105, 'mlslabel',
106, 'mlslabel',
'undefined') as data_type, /* these decodes come from the view */
/* definition for DBA_TAB_COLUMNS */
/* in CATALOG.SQL for version 7.3 */
/* the next two decodes are derived from the actual queries performed by Storage */
/* when Manager retrieving column information. */
decode(nvl(col.precision#, 0),
0, col.length,
nvl(col.precision#,0)) as data_length,
to_number(decode(nvl(col.precision#, 0),
0, null,
decode(col.type#,
2, nvl(col.scale,-127/*MAXSB1MINAL*/),
0) ) ) as scale,
decode(col.null$, 1, 'n', null) as nulls,
'y' as in_primary_key
FROM sys.col$ col,
sys.obj$ t,
sys.user$ u
WHERE u.user# = t.owner# /* user$ will be the driving table because no index on user# */
AND t.obj# = col.obj#
AND u.name = 'POWERSELLER' /* We only care about PowerSeller tables/columns; */
AND t.type# in (2, 4) /* Tables and views only */
AND EXISTS (SELECT 1
FROM sys.ccol$ ns_ccol,
sys.cdef$ ns_cdef,
sys.obj$ ns_t,
sys.user$ ns_u
WHERE ns_u.user# = ns_t.owner#
AND ns_t.obj# = ns_cdef.obj#
AND ns_cdef.con# = ns_ccol.con#
AND ns_u.name = 'POWERSELLER'
AND ns_cdef.type# = 2 /* primary key constraint */
AND ns_cdef.enabled is not null
AND ns_ccol.obj# = t.obj# /* using ns_ccol instead of ns_t */
/* does 70% as many logical reads */
AND ns_ccol.col# = col.col#
) -
Issue with Query (Adding Columns)
Oracle: 10g
I have the following query:
select league_name, moniker, last_name, team_id, team_name, count(1) as Duplicates
from (
select players.league_name, players.moniker, players.last_name, players.player_id, players.team_id, players.team_name
from customer_data.cd_soccer_players players,
select distinct league_id, player_id
from (
select league_id, player_id
from customer_data.cd_soccer_ytd_player_stats ps
where league_id in (22,64,39,80,49,51,58,140,54,135)
and ps.season in (2008,2009)
union
select league_id, player_id
from customer_data.cd_soccer_players pl
where league_id in (22,64,39,80,49,51,58,140,54,135)
and status='Y'
) player_universe
where player_universe.player_id = players.player_id
and player_universe.league_id = players.league_id
order by last_name
group by league_name, moniker, last_name, team_id, team_name
having count(1) > 1
order by league_name, team_name, last_nameI'm trying to have the query include the column "player_id" in the output. The issue that I'm having is that if I add the player_id column at the top of the query I have to add it to the group by statement and if that happens I end up getting zero results back (w/out the column there I get back 9 results). Currently none of the player_ids have the same value which is why the get eliminated when I add the player_id to the group by clause. Is there anyway to tweak the query so I add player_id to the output w/out losing the integrity of the data?
Edited by: user652714 on Feb 18, 2009 8:11 AM
Edited by: user652714 on Feb 18, 2009 8:21 AMI actually ended up finding a solution....this basically does the trick. If anyone has any better ways feel free to share.
select pl.league_name, pl.player_id,pl.player_id_1032, duplicates.moniker MONIKER, pl.moniker fn_2,
duplicates.last_name LAST_NAME, pl.last_name ln_2
from customer_data.cd_soccer_players pl,
select league_id, moniker, last_name, count(1) as DUPLICATES
from (
select players.league_id, players.moniker, players.last_name, players.player_id,players.player_id_1032, players.team_id
from customer_data.cd_soccer_players players,
select distinct league_id, player_id
from (
select league_id, player_id, player_id_1032
from customer_data.cd_soccer_ytd_player_stats ps
where league_id in (22,64,39,80,49,51,58,140,54,135)
and ps.season in (2008,2009)
union
select league_id, player_id, player_id_1032
from customer_data.cd_soccer_players pl
where league_id in (22,64,39,80,49,51,58,140,54,135)
and status='Y'
) player_universe
where player_universe.player_id = players.player_id
and player_universe.league_id = players.league_id
order by last_name
group by league_id, moniker, last_name
having count(1) > 1
) duplicates
where pl.last_name = duplicates.last_name
and pl.moniker = duplicates.moniker
and pl.league_id = duplicates.league_id
and pl.status = 'Y'
union
select pl.league_name, pl.player_id,pl.player_id_1032, duplicates.moniker as MONIKER, pl.moniker as LAST_NAME,
duplicates.last_name ln_1, pl.last_name ln_2
from customer_data.cd_soccer_players pl,
select league_id, moniker, last_name, count(1) as DUPLICATES
from (
select players.league_id, players.moniker, players.last_name, players.player_id,players.player_id_1032, players.team_id
from customer_data.cd_soccer_players players,
select distinct league_id, player_id
from (
select league_id, player_id,player_id_1032
from customer_data.cd_soccer_ytd_player_stats ps
where league_id in (22,64,39,80,49,51,58,140,54,135)
and ps.season in (2008,2009)
union
select league_id, player_id,player_id_1032
from customer_data.cd_soccer_players pl
where league_id in (22,64,39,80,49,51,58,140,54,135)
and status='Y'
) player_universe
where player_universe.player_id = players.player_id
and player_universe.league_id = players.league_id
order by last_name
group by league_id, moniker, last_name
having count(1) > 1
) duplicates
where pl.last_name = duplicates.last_name
and pl.moniker is null
and pl.league_id = duplicates.league_id
and pl.status = 'Y'
order by LAST_NAME, MONIKEr, league_nameEdited by: user652714 on Feb 18, 2009 9:48 AM -
Issue with the last column stretching in ADF table
There is an issue wherein when I try stretching the last column of the ADF table to reduce its width it does stretch. But whenever I try stretching it back to this original position it doesn't despite having columnstretching attribute set to multiple and assign widths in percentages to columns . When I set the columnstretching attribute to none, the last column does stretch back and forth but on page load the table does not stretch to its full width despite having styleClass="AFStretchWidth". Now I dont want to be assigning fixed width in pixels to the columns. I would want the last column to stretch back and forth with columnstretching="multiple" and styleClass="AFStretchWidth". I see the same issue on components demo page as well. Tag Guide
If you are trying that each column gets equally stretched based on the browser, its not possible as adf doesn't supports that.
If your table is not stretching use styleClass="AFStretchWidth".
But if all your columns are not stretching you can only try setting column widths + columnStretching property (where you can specify which column to stretch to fill all the spaces)
Amit -
Having an issue with my wifes user name poping up when I update apps.
I sync my iPhone and iPad on the same PC as my wife and have for a while now. Recently after all the os7 jargen I have a new problem. Some of the apps that I have she has never downloaded or used, yet it still asks for her password. So I cant update my apps unless I use her password. I try resetting, reinstalling apps from iTunes, and still the same issues. I have never had as many issues in the whole time I had this phone that I have in the last month. I hope there is a fix for this.
The device will only prompt for an Apple ID credentials if there is content on the device was acquired with that Apple ID.
-
Issue with non calculated column in a fact table
Hi All,
With 3 facts(Fact1,Fact2,Fact3) and 2 Confirmed Dimensions my joins work fine in Criteria when I include All calculated columns from facts. If I try to include a non calculated column from Fact1(Which is a number Data type) Columns from Fact2 and Fact3 show Null values. I know it is not recommended to include dimension columns in fact , does OBIEE not support Number type non calculated columns as well? Is there any work around that I can bring in my non calculated column from Fact and still get results for other fact columns.Iam at 11.1.1.7 of OBIEE
Let me know if Iam not clear.
Your help is much Appreciated.
Thanks,
Vineela.i would like to add 2 fields into my fact tables - LOAD ID (populated by a sequence during each load) and LOAD DATE.
as these fields are not related to any reporting dimensions, it is still possible to add them in OWB ? the fact wizard always ask for a foreign key to a dimension ...
Duncan,
If you want to add non dimensional attributes to a fact by using OWB, you can create additional measures to it and use them as attributes.
Igor -
Like operator issue with on Number column
Hi,
Query with like operator for Example: " where RATE LIKE ('%2%')"
the result of the query returns rows which contains "2" as part of field value along with few rows which are updated recently, but do not contain 2 in that row.
In the table data type of COLUMN is Number, no precision.
Pls let me know if any one knows about this.
--satya.Can you please post the result of the query you are using?
Regards -
Issue with Numeric characters format 10.000,00
Hi,
I am getting following error when I am generating the report from the XML output:
"An error encountered either due to invalid Template details or due to null Data Input Stream." This error come only if the system profile "ICX: Numeric characters" is set to 10.000,00 during the XML output generation.
If I am generating the XML output with "ICX: Numeric characters" is set to 10,000.00 then I am generating the report from that XML, it supports both the number formats.
So, the solution I am looking for is, generate the XML output always with '10,000.00' format, irrespective of the system profile option "ICX: Numeric characters". Please suggest me how to do that. Also please let me know if there is any alternative way to achieve my requirement.
Thanks
SanjeevaHi ,
Please set the following before submitting the request :-
declare
l_set_options boolean;
l_nls_numeric_characters varchar2(2000);
begin
l_set_options := FND_REQUEST.set_options (numeric_characters => P_NLS_CHARACTERS);
end;
if you always want it as 10,000.00 then
P_NLS_CHARACTERS = '.,';
else
you can get nls_numeric_characters value from fnd_concurrent_requests table for the parent program.
or
fnd_profile.get('ICX_NUMERIC_CHARACTERS', l_nls_numeric_characters);
Thanks
Padmaja
Edited by: Padmaja on Sep 15, 2010 12:01 PM
Maybe you are looking for
-
ACD 30 + Belkin SOHO F1DD102L KVM
Troubleshooting connecting an ACD 30" to a Belkin SOHO F1DD102L KVM. Here is my setup: Apple Cinema Display 30" MacPro 1,1 with ATI Radeon 5770 DVI video card (this is an upgrade from the stock card) MacBook Pro 3,1 I connected everything and when sw
-
AIA 3.0 installer fails in step 10 of 11 at Deploy Application Deployments
Hi, we are trying to install AIA 3.0 on linux environment. we are getting the following error. Kindly provide inputs if anyone has faced similar issues. Deployments: [echo] ====================================== [echo] DeploymentPlan file ="/app/orac
-
Purchased movie never fully downloads
I recently purchased the movie Spider Man 2 on my computer, via iTunes 10.6.3. The standard definition and iTunes Extra files downloaded without any problem, but the HD version of the movie never seems to completely download. Instead, I am constant
-
Backorder processing CO06 problem
Hi, when using transaction CO06, i am not able to change the confirmed quantities of all sales orders with delivery block. Is there some way to allow this? All orders are created with delivery blocks and confirmation should be done before removing th
-
Arabic personal information in erp 11i tables
Hi In erp 11i when i do the navigation of ABC Administartion -People-special information i can see the name and designation of employee in arabic ,when i did record history i could find the name of table as per_person_analyses but when i do the selec