Sys_context while migrating from DB 9i to 10g
Hi friends,
We have been migrating our database from 9i to 10g. In 9i, the sql command
select nvl(sys_context('user_env','osuser'),'?') from dual
return the name of the user with which you have logged in. But after migrating DB to oracle 10g, this query returns null value.
What may be the reason ? What may be the possible solution ?
Nirav
Here is an example:
SQL> select nvl(sys_context('user_env','osuser'),'?') from dual ;
NVL(SYS_CONTEXT('USER_ENV','OSUSER'),'?')
SQL> select nvl(sys_context('userenv','osuser'),'?') from dual ;
select nvl(sys_context('userenv','osuser'),'?') from dual
ERROR at line 1:
ORA-02003: invalid USERENV parameter
SQL> select nvl(sys_context('userenv','os_user'),'?') from dual ;
NVL(SYS_CONTEXT('USERENV','OS_USER'),'?')
kkishore
SQL> disconnect
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>And here is an example on Oracle9i that has the same results. can you post an example on 9i where it works as you have posted?
SQL> select nvl(sys_context('user_env','osuser'),'?') from dual ;
NVL(SYS_CONTEXT('USER_ENV','OSUSER'),'?')
SQL> select nvl(sys_context('userenv','osuser'),'?') from dual ;
select nvl(sys_context('userenv','osuser'),'?') from dual
ERROR at line 1:
ORA-02003: invalid USERENV parameter
SQL> select nvl(sys_context('userenv','os_user'),'?') from dual ;
NVL(SYS_CONTEXT('USERENV','OS_USER'),'?')
kkishore
SQL> disconnect
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
SQL>
Similar Messages
-
Forms Migration from 4.5 to 10g
Hi ,
I want to migrate my forms from 4.5 to 10g so i did following steps:
1. Installed Developer suite 10g
2. Took a sample form developed in 4.5 and comiled it in 10g builder utilized the
sample.fmx file for 10g the test was successful ,
I need to migrate a complete application developed in 4.5 forms to 10g and I have
some existing libraries which I use in my forms , now i'm stuck how to utilize them for
10g as whenever I open the forms in 10g builder it asks me to remove the library.
Can please anyone inform me how to utilze the my own user built libraries and esp .
how to repalce D2KWUTIL with WebUtil and is the way i'm approaching for migartion
correct ?
Thanks.
Jonty.Hi ,
Thanks for the reply ,
but still i'm not clear how to utilize my libraries as even if i migate to Forms 6i
which in turn also supports D2KWUTIL ,so how to utilize Webutil instead of
D2WUTIL while migrating from 6i to 10g.
Is there any document or paper in suport to it.
Thanks. -
Which file gets created automatically while migrating from---QNo.113
Which file gets created automatically while migrating from non-ASM files to ASM diskgroup by using RMAN?
A. the contol file
B. the alert log file
C. the parameter file
D. the server parameter file
E. the archive redo log fileCheck this out
http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10734/rcmasm.htm -
Hotkey (Ctrl+B) is not working after migration from Forms 6i to 10g
Dear Gurus,
Need your help regarding the following problem:
After migrating from Forms 6i to 10g (Rel 2), Ctrl+B (used to list the blocks in a form) hotkey is not working anymore (all other hotkeys are working fine). I've checked my FMRWEB.RES and it contains an entry for Ctrl+B:
66 : 2 : "Ctrl+B" : 70 : "Block Menu"
Additional Information:
OS: AIX
NLS_LANG = UTF8
fmrweb_utf8.res also contains the same text for Ctrl+B as above.
I tried to reproduce it on my Windows Machine (with NLS_LANG set to AMERICAN_AMERICA.WE8ISO8859P1) and its not working as well. I don't have right to put move files on AIX server but i can try anything (on my local system) suggested by the Oracle gurus.
Best Regards,Dear Gerd,
"are you sure, that it is the hotkey"
Yes, i am dead sure. Since:
(1) It was working fine in forms 6i
(2) If you run a form and select Help => Keys, you will see Ctrl+B on the top of list
The problem is its not taking into account the keys which i am defining in the file (although i am following the same procedure detailed on metalink.oracle.com).
Regards -
Syntax errors while migrating from non- unicode to Uni code
What are the syntax errors while migrating from non unicode to Uni code
Hi Sudheer,
u can get the information related to errors while migrating from non- unicode to Uni code from the below...pls go through...
Note 765475 - Unicode Conversion: Troubleshooting
these are the notes related to the issues of migration form non unicode to ounicode.
Related Notes
986907 - SQL Server settings for R3load based system copy
954001 - Error fix: ILLEGAL_SUBSTRING_MODIFICATION in SUMG
936441 - Oracle settings for R3load based system copy
928909 - Repair table data in SUMG in Unicode systems
895804 - Problematic rows in table DMEE_TREE_NODE
895560 - Support for languages only available in Unicode system
885441 - Common Migration Errors
842788 - DB Multiconnect: Unicode Migration
837173 - RADCUCNT in Unicode Conversion: Collective Note
756534 - Automatic Assignment of Languages with Character Statistics
753334 - Unicode Conversion: Problem in Japanese device types
726954 - Private Use Areas in Unicode Systems
722193 - RFC legacy non-Unicode clients and Unicode servers
718329 - R3load terminates the export during a Unicode conversion
695196 - Error in the export for Unicode migration
672835 - Textflags could cause problems during Unicode conversion
627764 - Unicode migration: table pools inconsistent after conversion
614550 - Troubleshooting BC-I18
587896 - Add. info on upgrade to SAP R/3 Enterprise Core 4.70 SR1
573044 - Unicode conversion for HR application
480671 - The Text Language Flag of LANG Fields
379940 - Unicode based mySAP availability
79991 - Multi-Language and Unicode support of SAP applications
73606 - Supported Languages and Code Pages
42305 - RSCPINST (I18N configuration tool)
regards,
rudra..
Assign points if helpful -
"App_DispatcherUnhandledException" cannot work while migrating from VSTS2010 to VSTS2013
In the past, our project was developed in VSTS2010 and .NET 4.0, everything works well.
Right now, while migrating from VSTS2010 to VSTS2013 and from .NET 4.0 to .NET 4.5.1, we found that the exceptions thrown from one UI thread cannot be caught and handled in main thread.
I mean, once the exception is thrown, the "App_DispatcherUnhandledException" cannot catch and handle it in Debug.
During the migration, we don't change any codes and just update the project configuration file.
Is anyone know how to solve this problem?
Thanks so much!!Hello Zeng Wei,
It seems we do not have an edition called VSTS2013, it is old version when in
2005. Can I just understand you are upgrade your project from Visual Studio 2010 to Visual Studio 2013?
Anyway, for App_DispatcherUnhandledException that cannot be raised, we can check the MSDN article:
https://msdn.microsoft.com/en-us/library/system.windows.application.dispatcherunhandledexception.aspx?f=255&MSPPError=-2147217396
If an exception is not handled on either a background user interface (UI) thread (a thread with its own
Dispatcher) or a background worker thread (a thread without a
Dispatcher), the exception is not forwarded to the main UI thread. Consequently,
DispatcherUnhandledException is not raised. In these circumstances, you will need to write code to do the following:
Handle exceptions on the background thread.
Dispatch those exceptions to the main UI thread.
Rethrow them on the main UI thread without handling them to allow DispatcherUnhandledException to be raised.
Another thing is that please make sure you have this code:e.Handled =
true
best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Multiple contacts created while migrating from blackberry to i phone 6
while migrating from blackberry to i phone 6, i have inherited multiple contact lists. each is different in some way or the other. also, the one on my new phone is different. i need to merge all into one. how do it do it?
Your question doesn't seem to be related to Microsoft Word at all. I suggest that you try a forum that deals with IPhone.
Stefan Blom, Microsoft Word MVP -
Problem while migrating from JSF1.1 to JSF1.2
I'm facing the following issues while migrating from WAS 6.1 to WAS7.0
For this I have upgraded Jsf 1.1 to 1.2 and webmodule to 2.5, and following errors I'm having...
1. Description The method getExceptionMessageString(String) is undefined for the type Util
2. Description The method getMyForm(UIComponent) in the type CommandLinkRenderer is not applicable for the arguments (FacesContext, UICommand)
3. Description The method getName() is undefined for the type HtmlBasicRenderer.Param LinkRendererWithName.java
4. Description The method getParamList(UIComponent) in the type HtmlBasicRenderer is not applicable for the arguments (FacesContext, UICommand)
5. Description The method getValue() is undefined for the type HtmlBasicRenderer.Param LinkRendererWithName.java
Any alternative methods to those above methods in JSF1.2?
or am I need to upgrade any of the jaf dependencies?
Any suggestions are appreciated.
Thanksi_oss wrote:
But you should consider implementing your Renderers only using the API and not extending the com.sun.faces.* implementation classes, or you might end up changing your code again on your next jsf updates.Hm, good thinking. I didn't think about the split between the API and the implementation.
OT question on that subject: is it really good design to have that split? JSF, JAXB, JAX-WS, even CDI has an API and an implementation part to it. But do we really need that? In the case of JSF, you have Mojarra and Myfaces (and some other obscure JSF implementation I believe). But why would you use Myfaces over Mojarra since they both solve the same problem and are both actively developed? Why do we have to deal with API/implementation conflict hell that you can often find when using JAXB, especially in a Mavenized environment? We have Weld as the implementation for CDI. What would move anyone to make a 'competing' implementation of it?
For something like JPA I can at least understand it; the persistence providers were already there before JPA saw the light of day. There was no need for Sun to create a competing implementation, so they provided the API in stead. But in all other cases... I just don't get it. -
Problem while migrating from Sybase to Oracle using Quick Migrate
Hi,
For SQL Developer version 2.1, while migrating from sybase to oracle, Using Quick migrate, during data move step, for the rows having ''(Blank) values in TEXT data type in SYBASE, which is convertd to CLOB in Oracle, the migration for that table terminates at that row.
However, NULL values in Sybase TEXT data type are successfully inserted in Oracle CLOB.
How can we overcome this?reproduced and see exception in console, bug logged.
Edited by: Jade Zhong on Feb 1, 2010 6:10 PM -
Migrating from MSSQL2005 to OracleExpress 10g - stored proc problems
I'm trying to migrate from MSSQLExpress2005 to OracleExpress 10g.
I upgraded my SQLDeveloper 1.1.3 to SQLDeveloper 1.2 from Check Updates (Even it still displays 1.1.3 at Help->About, I assume it was upgraded because version of extensions changed to 10.2.0.29.98)
First I have renaming of my objects problem :
Why does SQLDeveloper renames my stored procedures? I dont see any reason to change.Some of about 50 occurrences :
1-"spCPLN_Alloc_ReSortForMultiAttendance" to "spCPLN_lloc_ReSortForMultitten"
2-"spCPLN_Alloc_CalculateFixedConstraints" to "spCPLN_lloc_CalculateFixedCons"
3-"spCPLN_Alloc_GetAllocationResult" to "spCPLN_lloc_GetllocationResult"
Another problem : What is the problem of this T/SQL scode snippet?I cant convert it with Scratch editor too. I got "Unexpected end of subtree : Line 0 Col 0." error
CREATE PROCEDURE spCPLN_XML_InsertDers
@CourseID int,
@Type1 int
AS
BEGIN
IF((NOT EXISTS(
SELECT * FROM DersKur
WHERE CourseID = @CourseID))
AND ( @Type1 = 2 ))
BEGIN
SELECT 1
END
END
I have more than 15 error like this.
thank you
tunaHi Tuna ,
Thanks for the feedback.
Stored procedure names are collision managed so that they are not longer than 30 characters in length. This is a limitation of Oracles object naming convention.
http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14261/fundamentals.htm#sthref309
WRT the procedure.
There is a issue in the T-SQL translator which I have logged a bug for.
bug 6127111 NOT EXITS SUB EXPRESSION NOT RECOGNIZED
It looks like the translator cannot recognize the
IF(( NOT EXISTS
and is expecting IF NOT EXISTS.
As a workaround the following manually modified T-SQL translates
T-SQL
CREATE PROCEDURE spCPLN_XML_InsertDers
@CourseID int,
@Type1 int
AS
BEGIN
IF NOT EXISTS(
SELECT * FROM DersKur
WHERE CourseID = @CourseID) AND ( @Type1 = 2 )
BEGIN
SELECT 1
END
END
GENERATED PL/SQL
CREATE OR REPLACE PROCEDURE spCPLN_XML_InsertDers
v_CourseID IN NUMBER DEFAULT NULL ,
v_Type1 IN NUMBER DEFAULT NULL ,
cv_1 IN OUT SYS_REFCURSOR
AS
v_temp NUMBER(1, 0) := 0;
BEGIN
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE NOT EXISTS ( SELECT *
FROM DersKur
WHERE CourseID = v_CourseID )
AND ( v_Type1 = 2 );
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
BEGIN
OPEN cv_1 FOR
SELECT 1
FROM DUAL ;
END;
END IF;
END; -
Fatal Error: Could not find Feature AnalyticsLinks in sharepoint 2010 while migration from 2007 site using stsadm command
Hi ,
Firstly, I need to verify the followings:
Whether you created a feature called AnalyticsLinks and activatated it at SharePoint 2007 site.
Whether you installed the feature at SharePoint 2010 site.
Please deactivate the feature AnalyticsLinks, then migrate SharePoint 2007 site to SharePoint 2010, compare the result.
Also , please check whether you have installed the feature AnalyticsLinks at your SharePoint 2010 site. If not, please install and activate it, compare the result.
Here are some similar posts for you to take a look at:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/17b17bd3-126c-44d4-bd58-38dd613017a0/fatal-error-could-not-find-feature-reviewpublishingspd1055?forum=sharepointadminprevious
http://mrin17.wordpress.com/2009/09/15/fatalerror-could-not-find-feature-s2siteadmin-while-importing-sites-from-different-server-at-sharepoint/
I hope this helps.
Thanks,
Wendy
Wendy Li
TechNet Community Support -
Error while migrating from ms access 2003 db to oracle 10g in sqldeveloper
Hello,
i am working on migration project from MS access 2003 to Oracle 10g on windows XP sp2 plateform using SQL developer.
it went quit smoothly till the "capture microsoft access" .so in this step the sql developer opens the access db in background... but while opening the file in background it gives error
Object library not registered i tried many workaround but of no use..
anybody's help in this regard would be well appreciated.
thanks.Hi,
Did you follow all the steps in the SQL*Developer documentation about preparing the Access database for migration -
Oracle® SQL Developer User’s Guide Release 3.0 -
2.2.4.3 Before Migrating From Microsoft Access
and -
Oracle® SQL Developer Supplementary Information for Microsoft Access Migrations Release 3.0
2.4 Preparing the Microsoft Access Database for Capture
The error also indicates there may be a problem with your Access installation so could you check that everything is okay with that ? I have found references that indicate a re-install of Office/Access will prevent the error.
Regards,
Mike -
Migrating from forms 6i to 10g
we are planning to upgrade from forms 6i to 10g
please provide me steps for migrating from oracle forms 6i to 10g
what are the prerequisite?
please help
thanks in advanceHi;
1. Here is Db installation related forum site. There are seeded forum site for forms.For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
2. For your question see:
Migration to Designer 6i, 9i and 10g - FAQ [ID 198119.1]
What Is the Easiest and Quickest Way to Migrate From 6i To 10g Reports? [ID 316269.1]
PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
Regard
Helios -
Locale Error while migrating from One Server to another Server in Essbase
Hi Gurus,
Actually we are trying to migrate the Essbase Native users/groups from Windows 2003 Server to 2008.In windows 2003 the Version is 11.1.1 and in 2008 its 11.1.2.While Migrating i faced he below error.I was using the Migration Wizard to migrate.
Start of Application Migration.
[D4W0218G.americas.hpqcorp.net:1423.Fiji] MigrateApplication February 15, 2013 10:30:04 AM SGT Failed
Error: Source and target servers should be of same locale for migration. [Source Locale: English_UnitedStates.MS1252@Binary, Target Locale: English_UnitedStates.Latin1@Binary]
End of Application Migration.
I even tried to change the target local to source local name in Environment Variables -->ESSLANG=English_UnitedStates.MS1252@Binary but of no use.
Can anyone please suggest me how to rectify this error.
Regards,
NaveenHi,
Review the section beginning at page 663 on unicode applications from the Essbase Database Admin Guide. On windows this is the ESSLANG environment variable on unix there is a file that you must modify.
See http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_dbag.pdf
I do suggest you read the whole section I referenced above. You would not be changing the source server. It is whatever format it is. You need to change in windows 2008.
Mark if this helps you.
Regards,
Kishore Rout -
Error while migrating from Weblogic 8.1 to 10.1.3
Hi
I am getting the below error while building the xml during migrating from Weblogic 8.1 to 10.1.3.
Could anyone please suggest how to resolve the below error:
Error:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/i18n/logging/LogMessage
[java] at weblogic.application.compiler.Appc.runBody(Appc.java:179)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[java] at weblogic.application.compiler.Appc.main(Appc.java:188)
[java] at weblogic.appc.main(appc.java:14)
[java] Caused by: java.lang.ClassNotFoundException: weblogic.i18n.logging.LogMessage
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
Regards
Kiran
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[java] ... 5 moreYou have to make sure the LogMessage class (weblogic/i18n/logging/LogMessage) is in the classpath
Using WebLogic Internationalization utilities: http://download.oracle.com/docs/cd/E17904_01/web.1111/e13704/utilities.htm#i1011073
and an example: http://download.oracle.com/docs/cd/E17904_01/web.1111/e13704/textformatterclasses.htm#g1016464
and: http://download.oracle.com/docs/cd/E17904_01/web.1111/e13704/loggerclasses.htm#g1020871
Maybe you are looking for
-
Mail Alias and Server Settings
HI! 1. Since MobileMe arrived, none of my alias' show up in the Mail Application. Any ideas? 2. Since MobileMe arrived, my POP accounts won't work. The Mail Application is not letting the other servers get beyond "offline" status so I can't sen mail
-
MT940 EBS upload for Incoming payment
HI, We are implementing the MT940 format EBS upload for incoming payments. For incoming payment (customer) not executing the F110. so by EBS upload following posting should be happen; Debit - Bank account Credit - customer subledger account The note
-
Can't drag and drop from iPhoto to iWeb anymore!
I used to be able to drag photos from iPhoto into a photo page in iWeb. Now when I do so, large versions of the photos show up, overlapping one another instead of fitting neatly into little boxes on the photo page like they used to do. Does anyone ha
-
Functional specs for ESS workflow
Hi, Can anybody tell me how I CAN figure out the tables from where the plans come from and where the plans need to be updated after the EE plan selections in open enrollment are approved by the HR manager? I need to give this functional spec to the t
-
Configuration of SAP NW AS (Configuration of SAP Mobile Infrastructure)
Hello everyone 'm configuring the MI and I want to clarify some key concepts. In the configuration of SAP NetWeaver AS when it says to initiate transactions (eg PFCG) means over the SAP R3 system? Thanks, Gokhan