Oracle impdp : UDI-00013 Message 13 not found - database

Using Oracle impdp I'm getting error message:
UDI-00013 Message 13 not found
No message file for product=RDBMS, facility=UDI
How can I correct this?

You can get this error when your ORACLE_HOME environment variable is not set, or when it is set but not exported:
> unset ORACLE_HOME
> ORACLE_HOME=/dboracle/orabase/product/11.2.0.BTSP2
> impdp
UDI-00013: Message 13 not found; No message file for product=RDBMS, facility=UDI
UDI-00019: You may need to set ORACLE_HOME to your Oracle software directory
> export ORACLE_HOME
> impdp
Import: Release 11.2.0.3.0 - Production on Fri Mar 6 12:16:51 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Username:
If it's set, so you can see it with echo for example, make sure it is also exported with export ORACLE_HOME; you can also check which variables have been exported with export | grep ORACLE, so you can see if anything else is missing - maybe ORACLE_SID depending on your connect string.
These are usually set by an environment set-up script.

Related

Unable to install SQL Server (setup.exe)

I used SQL Server 2019 express version on my laptop butI uninstalled. Now I am trying to install SQL Server 2019 Developer edition but I get an error:
Exit code (Decimal): -2068119551 Exit message: Cannot find registry key 'SOFTWARE\Microsoft\Microsoft SQL Server\150\ConfigurationState'.
Error description: Invalid command line argument. Consult the windows installer SDK for detailed command line help.
Environment: Dell/Inspiron/Windows 10 Home/16gb ram/256 SSD / 1TB HDD /Corei7
Can anyone help me how to solve the problem? Thanks
PS: attaching screenshot for kind reference
You can try below options, based on the reference article
Run the setup.exe again, repair the installation.
Run the Setup.exe as administrator
See whether you have clearly uninstalled the previous SQL Server setup and try again.
Did you modify the registry setting earlier. If so, please revert the changes and try the installation. Eg., changing the default installation to D:, instead of C: etc.
I fed up the below problem
Unable to install SQL Server (setup.exe).
Exit code (Decimal): -2068119551 Exit message: Cannot find registry key 'SOFTWARE\Microsoft\Microsoft SQL Server\150\ConfigurationState'. Error description: The specified service does not exist as an installed service.
I fixed the above problem
DR-2033 avatar image
Click to vote
1 Vote"
1
DR-2033 answered • Dec 21 2021 at 4:03 AM | EricK-0825 commented • Mar 21 2022 at 3:20 AM
Unable to install SQL Server (setup.exe)

Issue using impdp in oracle db

I have an licensed Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Version 19.7.0.0.0. Furthermore I have another Oracle DB in a docker container that has been created as described in DockerFiles, whihc is 18.4.0 xe.
I want to transfer the schema/data from 19c to 18.4xe. I have used the following command to export the data from 19c:
expdp system/pwd#db DIRECTORY=export_dir_local SCHEMAS=MYSCHEMA CONSISTENT=yes EXCLUDE=statistics COMPRESSION=all VERSION=18.1.0 DUMPFILE=mydump.dmp LOGFILE=mydump.log
and then in the docker I import it by using
impdp system/pwd#localhost/xepdb1 directory=DUMP_DIR dumpfile=mydump.dmp exclude=STATISTICS LOGFILE=mydump.log
However when I run the command I receive the following error:
Import: Release 18.0.0.0.0 - Production on Wed Mar 3 19:15:39 2021
Version 18.4.0.0.0
Copyright (c) 1982, 2018, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
ORA-39002: invalid operation
while the log contains:
;;;
Import: Release 18.0.0.0.0 - Production on Wed Mar 3 19:15:39 2021
Version 18.4.0.0.0
Copyright (c) 1982, 2018, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at Wed Mar 3 19:15:46 2021 elapsed 0 00:00:04
Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at Wed Mar 3 19:15:46 2021 elapsed 0 00:00:04
I have tried also to export it with COMPRESSION=NONO with the same error and by changing the version VERSION=18 or VERSION=18.4.0
but I receive the error:
Connected to: Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
ORA-39002: invalid operation
ORA-39358: Export dump file version 18.4.0 not compatible with target version 18.1.0.0.0
Furthermore in "show parameter compatible" I receive
NAME TYPE VALUE
----------------- ------- ------
compatible string 18.0.0
noncdb_compatible boolean FALSE
Any ideas? Thanks

Error Running SSIS Package from Command Line

Ultimately, I'm trying to schedule SSIS packages to run on a regular basis using Task Scheduler in an Azure VM (Windows Server 2016 Datacenter). From the command line on my development machine (Windows 10), I'm able to run...
dtexec.exe /Project "pathToMy.ispac" /Package "pathToMy.dtsx"
...and it works as expected. However, when I try to do the same from the Azure VM I get the following error:
Microsoft (R) SQL Server Execute Package Utility Version 11.0.6020.0
for 32-bit Copyright (C) Microsoft Corporation. All rights reserved.
Started: 2:17:46 PM Could not load package
"MyPackage.dtsx" because of error 0x80131500.
Description: The package failed to load due to error 0xC0011008 "Error
loading from XML. No further detailed error information can be
specified for this problem because no Events object was passed where
detailed error information can be stored.". This occurs when
CPackage::LoadFromXML fails. Source: MyPackage
Started: 2:17:46 PM Finished: 2:17:47 PM Elapsed: 0.547 seconds
On both machines, I have the same version of SQL Server 2016 Developer (w/ SSIS) and Visual Studio 2015 installed. Also, I'm able to run the package fine on the VM from within Visual Studio. It's only from dtexec.exe that I have issues.
I've tried every solution on here from other posts getting similar errors and none have helped. Any ideas?
Thanks,
Ian
Thanks to #Nick.McDermaid, the answer to this riddle has been found. By running dtexec.exe (with no parameters) on the dev machine and on the VM, I was able to see that the VM version was v11 and the dev version was v13 which explained why I was getting the error and why one worked and another didn't.
I then did a File Explorer search on the VM for dtexec.exe copies and found several. Apparently, the environment path was set to find the older version. I probably could have found the variable causing this problem and changed it. However, out of concern about breaking something else and wanting a quick solution, I chose to execute using the full path to the correct version. For v13, this ended up being...
"C:\Program Files\Microsoft SQL Server\130\DTS\Binn\dtexec.exe"
So, for my schedule task I set the following properties for my "Start a program" action.
Program/Script: "C:\Program Files\Microsoft SQL Server\130\DTS\Binn\dtexec.exe"
Add Arguments: /Project "bin/Development/myProject.ispac" /Package "myPackage.dtsx"
Start in: c:{path to my .dtsx file}

TFS 2012 to 2015 Upgrade - Getting error TF400311 "The database connection strings are not valid"

I took a full backup of all my TFS 2012 databases from the existing server using the TFSBackup.exe tool.
I set up a clean server with fresh installation of SQL 2014 and TFS 2015 Update 3. I restored the TFS database backups on the new instance using SQL studio.
Next, I ran the TFS upgrade wizard and selected the Tfs_Configuration database I restored. All of the readyness checks passed except for one - Data Tier.
The error that comes up is:
TF400311 - "The database connection strings are not valid and cannot
be automatically corrected. To fix this problem, use the TFSConfig
RemapDBs command-line tool to correct the database connection
strings."
When I try running the TFSConfig RemapDBs tool, I get the following error:
PS E:\Microsoft Team Foundation Server 14.0\Tools> .\TFSConfig RemapDBs /DatabaseName:TFSTEST\MSSQL;TFS_Configuration /SQLInstances:TFSTEST\MSSQL /continue
Logging sent to file C:\ProgramData\Microsoft\Team Foundation\Server Configuration\Logs\CFG_CFG_AT_0919_192225.log
Microsoft (R) TfsConfig - Team Foundation Server Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.
Command: remapDBs
Microsoft (R) TfsConfig - Team Foundation Server Configuration Tool
Copyright (c) Microsoft Corporation. All rights reserved.
The sqlInstances argument is required. See the command line help for the remapDBs command.
TFS_Configuration : The term 'TFS_Configuration' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:50
+ .\TFSConfig RemapDBs /DatabaseName:TFSTEST\MSSQL;TFS_Configuration /SQLInstances ...
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (TFS_Configuration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
What am I doing wrong?? Thanks!
Run it from the command line, not from PowerShell. The semicolon is confusing things.
This gives it away:
The sqlInstances argument is required. See the command line help for
the remapDBs command.
TFS_Configuration : The term 'TFS_Configuration'
is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again. At line:1
char:50
You can tell that it's trying to run the command up to the semicolon, then failing. It's reporting the lack of a /sqlinstances flag, which you provided... after the semicolon. And you can see that it's trying to run "Tfs_Configuration" as a cmdlet.

Moved Oracle 11.2 XE Database Directory, Connected to Idle Instance

So I will start off by stating I have moved the regular install location of Oracle 11.2 XE to a logical volume (/oracle) I had created on my RHEL 6.6 server. After shutting down both the database and the Oracle listener, I performed...
$ cp -R /u01/app/* /oracle
$ rm -rf /u01/app/oracl
$ ln -s /oracle/oracle /u01/app/oracle
Then restarted the listener and the database. Now when I attempt to run the following as the user 'oracle' I get a message...
$ sqlplus
Enter user-name: sys / as sysdba
Enter password: ****
Connected to idle instance.
Further, when I attempt a startup I get an error.
> startup
ORA-45301: XE Edition single instance violation error
I have attempted the solutions found here to no avail.
Here is the output for my listener controller:
bash-4.1$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 10-MAR-2015 10:26:25
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 10-MAR-2015 10:25:57
Uptime 0 days 0 hr. 0 min. 28 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/dev/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dev)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
I'm really quite lost as to what to attempt next. I know I could just reinstall and keep the directory in its proper location but I need it to be in it's own logical volume.
EDIT
Some further information to help clarify my system...
bash-4.1$ env | grep ORA
ORACLE_SID=XE
ORACLE_BASE=/oracle/oracle
ORACLE_HOME=/oracle/oracle/product/11.2.0/xe
bash-4.1$ env | grep TNS
TNS_ADMIN=/oracle/oracle/product/11.2.0/xe/network/admin
bash-4.1$ ps -aux | grep pmon
oracle 2431 0.0 0.2 1265956 16652 ? Ss 11:43 0:00 xe_pmon_XE
FURTHER EDIT
Attempting to sign in to sqlplus using the SYSTEM user returned an error:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
FURTHER EDIT
Output of the ipcs command
bash-4.1$ ipcs
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0xc0a59444 32768 oracle 660 4096 0
------ Semaphore Arrays --------
key semid owner perms nsems
0xd4a9963c 229378 oracle 660 104
0x884d8f34 491523 oracle 660 104
------ Message Queues --------
key msqid owner perms used-bytes messages
Check output of ipcs command and try to delete all shared memory segments/semaphores owned by Oracle.
When Oracle starts it uses two strings ORACLE_SID(uppercase) and ORACLE_HOME, hashes these two strings and uses this hash value a key for shmget call. So even if you append slash / to ORACLE_HOME everything is different from Oracle's perspective - even if the disk path is the same.
So I think you moved ORACLE_HOME into some other location, but the old value was preserved somewhere and now Oracle thinks that you are trying to start multiple instances.
EDITED: I'm not sure about XE, but regular Oracle editions are shipped as a bunch of .o object files. These files are linked during installation, but you can also re-link Oracle anytime. Check the script $ORACLE_HOME/bin/relink if the old ORACLE_HOME is hardcoded in it. And then try to re-link all libraries by executing relink all. Also note that Oracle uses link option -Wl,-rpath=..., so some Oracle binaries have library search patch compiled in them.
For Standard/Enterprise edition it is not problem to copy binaries into different Oracle home.
Check in /u01/app/oracle/product/11.2.0/xe/dbs/ if you have renamed your XE database or attempted to create a new one, you must be sure there is only one database known by xe. It's limited to one instance.
/etc/init.d/oracle-xe stop
cd /u01/app/oracle/product/11.2.0/xe/dbs/
rename any unused pwfile and spfile to .old
/etc/init.d/oracle-xe start
Issue was a wrong entry in tsnnames.ora (I had added a line that shouldn't of been there) and as well the permissions for my /oracle directory were incorrect. Thank you to everyone who tried to help, it was greatly appreciated.

Resources