How to resolve "SQL Anywhere Error -265: Procedure 'current_schema' not found" while configuring liquibase.properties for use with SAP IQ instance? - liquibase

I am having an issue getting Liquibase configured to connect to my database/schema on SAP IQ instance. An issue with the driver or I have the incorrect driver.
ERROR:
SQL Anywhere Error -265: Procedure 'current_schema' not found
For example, liquibase.properties file contents:
classpath: C:/Users/[REDACTED]/AppData/Roaming/DBeaverData/drivers/drivers/sybase/jconnect/jconn4.jar
driver: com.sybase.jdbc4.jdbc.SybDriver
url: jdbc:sybase:Tds:{host}:{port}/{db}
username: *****
password: *****
See open issue: https://github.com/liquibase/liquibase/issues/2051

I had the same issue and adding the defaultSchemaName property in the liquibase.properties resolved this error.

Related

Running SSIS packages as SQL Server Agent Job failed

it is the first time and my first post in "stackoverflow" and I hope, that you can help me regarding my project.
Once I start the corresponding Job in SSMS, which I have created, I get the following error message:
Executed as user: XXXX Microsoft (R) SQL Server Execute Package
Utility Version 13.0.5026.0 for 32-bit Copyright (C) 2016 Microsoft.
All rights reserved. Started: 15:36:23 Error: 2021-10-11
15:36:23.51 Code: 0xC0011007 Source:
{BE14993C-9347-4920-8C3C-97E254866D05} Description: Unable to
load the package as XML because of package does not have a valid XML
format. A specific XML parser error will be posted. End Error Error:
2021-10-11 15:36:23.51 Code: 0xC0011002 Source:
{BE14993C-9347-4920-8C3C-97E254866D05} Description: Failed to
open package file "D:\Test\XXX.dtsx" due to error 0x80070003 "The
system cannot find the path specified.". This occurs when loading a
package and the file cannot be opened or loaded correctly into the XML
document. This can be the result of specifying an incorrect file name
when calling LoadPackage or the specified XML file has an incorrect
format. End Error Could not load package "D:\Test\XXXX.dtsx" because
of error 0xC0011002. Description: Failed to open package file
"D:\Test\XXXX.dtsx" due to error 0x80070003 "The system cannot find
the path specified.". This occurs when loading a package and the file
cannot be opened or loaded correctly into the XML document. This can
be the result of specifying an incorrect file name when calling
LoadPackage or the specified XML file has an incorrect format.
Source: {BE14993C-9347-4920-8C3C-97E254866D05} Started: 15:36:23
Finished: 15:36:23 Elapsed: 0.016 seconds. The package could not be
found. The step failed.
I have already tried the following points:
The permissions which I log in on the appropriate server, etc.
I have created a "Credential" & "Proxy" and configurated/managed it
Check the "DelayValidation" in Visual Studio (is "True")
TargetServerVersion is on "SQL Server 2019"
Security => ProtectionLevel is on "EncryptSensitiveWithUserKey"
Many thanks for your assist.
Best Regards,
Safak
I see that the path of the package using is a path server server. If that's the case replace it with UNC path in format //machinename/ c$/...
The account executing package from job has no access to path. If that's the case give account access to the path

JDeveloper 12c | IntegratedWebLogicServer | Error while building the default domain

I'm trying to run IntegratedWebLogicServer using JDeveloper Version 12.2.1.4.0, and I have the following message:
ERROR: An error occurred while building the default domain.
And the log shows:
BuildDefaultDomain1.py 2020-02-10 11:53:05
cmd.exe /c ""C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd" "C:\Users\nauana.nonato\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py""
Cannot run program "cmd.exe" (in directory "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin"): Malformed argument has embedded quote: "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd" "C:\Users\nauana.nonato\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
java.io.IOException: Cannot run program "cmd.exe" (in directory "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin"): Malformed argument has embedded quote: "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd" "C:\Users\nauana.nonato\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at oracle.jdevimpl.adrs.weblogic.wlst.ScriptRunnerImpl.runScript(ScriptRunnerImpl.java:106)
at oracle.jdevimpl.adrs.weblogic.builder.DomainScriptRunnerImpl.runScript(DomainScriptRunnerImpl.java:146)
at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder.createDomain(DefaultDomainBuilder.java:606)
at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder.build(DefaultDomainBuilder.java:274)
at oracle.jdevimpl.adrs.weblogic.builder.DefaultDomainBuilder$1.run(DefaultDomainBuilder.java:225)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Caused by: java.lang.IllegalArgumentException: Malformed argument has embedded quote: "C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd" "C:\Users\nauana.nonato\AppData\Roaming\JDeveloper\system12.2.1.4.42.190911.2248\o.j2ee.adrs\BuildDefaultDomain1.py"
at java.lang.ProcessImpl.needsEscaping(ProcessImpl.java:279)
at java.lang.ProcessImpl.createCommandLine(ProcessImpl.java:202)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:436)
at java.lang.ProcessImpl.start(ProcessImpl.java:140)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 9 more
What should I do?
Follow the following steps to fix this issues in 12.2.1.4
Go to Oracle_Home\jdeveloper\ide\bin folder.
Edit ide.conf file.
Under # Other OSGi configuration options for locating bundles and boot delegation section (or any other section) add the following line
AddVMOption -Djdk.lang.Process.allowAmbiguousCommands=true
Restart JDeveloper.
I am having the same problem as you. I am installing Oralce SOA Quick Start 12c version 12.1
Version JDK: javac 1.8.0_251
To solve this problem. You set parameters in enviroment:
-Djdk.lang.Process.allowAmbiguousCommands=true
set JAVA_TOOL_OPTIONS=-Djdk.lang.Process.allowAmbiguousCommands=true
good luck: ManhKM

Detected failed migration to version Flyway

I added a sql file to my project and now I am receiving the following error:
nested exception is org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration to version 1.0.9 (update)
Here is my sql file I'm adding:
ALTER TABLE `episodes`
ADD COLUMN `rating` TINYINT(1) NULL DEFAULT NULL;
I added the same query to MySQL Workbench and it's working fine, so I think the error here is beyond the sql file added
UPDATE: full stack trace below
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration to version 1.0.9 (update)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1708)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:581)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)
at com.nbcuni.cds.Application.main(Application.java:12)
Caused by: org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration to version 1.0.9 (update)
at org.flywaydb.core.Flyway.doValidate(Flyway.java:1286)
at org.flywaydb.core.Flyway.access$100(Flyway.java:71)
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1176)
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1168)
at org.flywaydb.core.Flyway.execute(Flyway.java:1655)
at org.flywaydb.core.Flyway.migrate(Flyway.java:1168)
at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1767)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1704)
... 18 common frames omitted
UPDATE: When I run mvn:flyway-validate, I receive the following error:
org.flywaydb.core.api.FlywayException: Unable to connect to the database. Configure the url, user and password!
I'm not sure where to configure it? It's already set in my applications.properties file? And w/o this version the spring application is working fine
I guess the problem is the error in migration history saved on your database.
Try deleting the line that failed and try again. If the error won't vanish, the problem is somehow in your statement.
I just had the same issue :)
below resolved the validate problem for me:
mvn flyway:validate -Dflyway.configFile=myFlywayConfig.properties
The error happen if there is any record is inserted into the 'flyway_schema_history' with failed status or part of the failed migration might already run. Just need to remove failed recored from the 'flyway_schema_history' then run "flyway migrate" again.
Query to flyway_schema_history table
select * from your_database_name.flyway_schema_history
You will get something like this:
Remove the record with success =0 and run again "flyway migrate".
Note, that this table might have a different name depending on the configuration

change run 64 bit run time property to false on run time executing ssis package through sql server job

I have parent package and associated child package to be executed from sql server agent job but I am getting following error :
*
Source: xxxxx Connection manager "RedshiftODBC" Description: An
ODBC error -1 has occurred. End Error Code: 0xC0014009 Source:
xxxxxx Test Connection manager "RedshiftODBC" Description: There
was an error trying to establish an Open Database Connectivity (ODBC)
connection with the database server. End Error Error: 2018-09-13
09:40:02.59 Code: 0x0000020F Source: Load xxxxxx from RedShift
Load xxxxxx table [6] Description: The AcquireConnection method
call to the connection manager RedshiftODBC failed with error code
0xC0014009
*.
I have check marked Run32bitRuntime on sql job execution option but still not able to resolve.
help appreciated
Hi there several steps to run a SSIS package in 32 bits:
Check if ODBC is created in 32 bit. Real odbc 32 bit administrator is in folder C:\Windows\SysWOW64.
Check if SSIS package has chekded run64bitruntime property FALSE.
Check if SQL Agent property 'Use 32 bit runtime' checked.

WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running

Hii I am facing issue while connecting to weblogic server. The command i used to connect to it is as follows:
java -Dweblogic.security.SSL.ignoreHostnameVerification=true -
Djava.security.egd=file:/dev/./urandom -DUseSunHttpHandler=true -
Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -
Dsun.jnu.encoding=ISO-8859-1 -Dfile.encoding=ISO-8859-1 weblogic.WLST
<path>/weblogic_configuration_domain_update.py <path>/weblogic-
domain.properties
It gives following error:
javax.naming.CommunicationException [Root exception is
java.net.ConnectException: t3://<IP>:<port>: Destination
unreachable; nested exception is: java.net.ConnectException: Connection
refused; No available router to destination]
Problem invoking WLST - Traceback (innermost last):
File "/<path>/weblogic_configuration_domain_update.py", line 134, in ?
File "<iostream>", line 22, in connect
File "<iostream>", line 648, in raiseWLSTException
WLSTException: Error occured while performing connect : Error getting the
initial context. There is no server running at t3://<IP>:<port>
Please let me know is there any way to resolve this issue. Thank you in advance.
you have to insert the correct values in the script: weblogic_configuration_domain_update.py
for example: connect(t3://thelisteingadressofthehost.network.com:thelisteningportoftheAdminServer)
and be sure which protocol you are using t3 or t3s...
https://docs.oracle.com/cd/E13222_01/wls/docs92/config_scripting/reference.html
Open terminal and add mentioned below variable JVM_ARGS
[oracle#node1 bin]$ set JVM_ARGS="-Dprod.props.file='${WL_HOME}'/.product.properties ${WLST_PROPERTIES} ${JVM_D64} ${UTILS_MEM_ARGS} ${COMMON_JVM_ARGS} ${CONFIG_JVM_ARGS} -Dweblogic.security.TrustKeyStore=DemoTrust"
[oracle#node1 bin]$ wlst.sh
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline>