I'm trying to connect from QlikView to snowflake in order to download data to qvd
I've installed the necessary driver:
Filled all the blue blanks:
Trying to connect from QlikView:
After I press the test connection I'm get the following error after a long time:
As Zephro mentioned, it seems there's a connectivity issue on your side. Could you please use SnowCD to ensure that you can access to the Snowflake service?
https://docs.snowflake.com/en/user-guide/snowcd.html
Download the SnowCD for your operation system (Windows/Mac/Linux are supported).
First run the following command:
SELECT SYSTEM$WHITELIST();
Then save the output to a JSON file (test.json), and run the SnowCD with the JSON file name as first parameter:
snowcd test.json
Related
I'm a problem in JDBC Connection Configuration.
When i execute my test (only JDBC Request - insert), doesn't appear any results in report (View Results Tree).
The connection is SQL Server.
See below the configuration:
database URL: jdbc:sqlserver://${myURL}
JDBC driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver
Username: ${user}
Password: ${password}
Could someone help me?
Thanks!!!
Make sure to add Microsoft JDBC Driver for SQL Server to JMeter Classpath and restart JMeter to pick up the .jar
Check jmeter.log file for any suspicious entries
Be informed that JDBC Connection Configuration is a Configuration Element hence it's being executed before anything else so your variables like ${myURL}, ${user} and ${password} might not have their respective values yet
Check that your query returns results in mssql-cli
Set the validation query to select 1 if it's different:
You can check out The Real Secret to Building a Database Test Plan With JMeter article for more comprehensive steps if needed.
I am trying to connect Jmeter to a geo redundant database with two hosts and I am struggling with finding the right Database Url format.
This is how my connection string looks like:
jdbc:oracle:thin:#(DESCRIPTION=(ENABLE=BROKEN)(FAILOVER=on)(CONNECT_TIMEOUT=5sec)(TRANSPORT_CONNECT_TIMEOUT=3sec)(RETRY_COUNT=3)(LOAD_BALANCE=on)(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=HostName)(PORT=port)))(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=HostName2)(PORT=port)))(CONNECT_DATA=(SERVICE_NAME=ServiceName)))
Database Connection Configuration is as following:
JDBC Driver Class: oracle.jdbc.OracleDriver Username: username
Password: password
For the Database URL I tried different formats and I keep getting the error:
Cannot load JDBC driver class 'oracle.jdbc.OracleDriver'
Note that the ojdbc.jar file is in the /lib folder as per the Jmeter documentation. Also, the ports are the same for both hosts.
Any suggestion is welcome. :)
I don't think you will be able to establish the connection to Oracle RAC using JMeter's JDBC Connection Configuration as it doesn't allow full flexibility therefore you will not be able to properly instantiate the PoolDataSourceFactory
So I would recommend switching to JSR223 Test Elements and Groovy language where you will have the full freedom when it comes to setting up the connection, executing queries, accessing results, etc. The relevant code would be something like:
def prop = new Properties()
prop.put('oracle.jdbc.thinForceDNSLoadBalancing','true')
PoolDataSource pds = PoolDataSourceFactory.getPoolDataSource()
pds.setConnectionProperties(prop)
pds.setConnectionFactoryClassName('oracle.jdbc.pool.OracleDataSource'); pds.setUser('johndoe')
pds.setPassword('secret')
String dbURL =
'jdbc:oracle:thin:#(DESCRIPTION=(ENABLE=BROKEN)(FAILOVER=on)(CONNECT_TIMEOUT=5sec)' +
'(TRANSPORT_CONNECT_TIMEOUT=3sec)(RETRY_COUNT=3)(LOAD_BALANCE=on)(ADDRESS_LIST=(LOAD_BALANCE=on)' +
'(ADDRESS=(PROTOCOL=TCP)(HOST=HostName)(PORT=port)))(ADDRESS_LIST=(LOAD_BALANCE=on)' +
'(ADDRESS=(PROTOCOL=TCP)(HOST=HostName2)(PORT=port)))(CONNECT_DATA=(SERVICE_NAME=ServiceName)))'
pds.setURL(dbURL)
More information: Configuring Fast Connection Failover for JDBC Clients
It appears to be working with a connection string containing only host 1.
The Database URL is in the form:
jdbc:oracle:thin:#<hostname>:<port>/<serviceName>
Additionally, I got the error because the .jar file's path was not added to the classpath (click on Test Plan, in the bottom select browse next to Add directory or jar to classpath and select your odbc jar).
Another thing that was wrong was the Validation query, it should be "select 1 from dual" and also the query should not contain any semicolon at the end.
I hope this help people with the same issue.
I wanted to know if there is a method to get the Agent name and the server where it's running. I tried reading all the OdiGetInfo() material, but couldn't find anything helpful.
I need these informations since I have to do an ODI package that constantly check if an Agent and the server are up & running.
I know it's possible to do that using a shell script, executed from the ODI package, but I wanted to know if there is another way to do that.
Thank you.
Method to get Agent Name: odiRef.getSession("AGENT_NAME")
Method to get Server details: odiRef.getInfo("DEST_JAVA_URL")
Note: DEST_JAVA_URL parameter returns the entire JDBC URL mentioned in Physical Data server.
I have created an SSIS package (08) that has a script task which runs an SSRS report (08) with given parameters. The report creates a pdf version of the file on a file share drive of my choosing.
When I run the SSIS manually it works perfectly, however, when I upload SSIS into SQL and then run it from the job agent it fails. It gives a long error message but the basic piece is;
(0xC0016016 Source: Description: Failed to decrypt
protected XML node "DTS:Property" with error 0x8009000B "Key not valid
for use in specified state.". You may not be authorized to access
this information. This error occurs when there is a cryptographic
error. Verify that the correct key is available. End Error
Error: 2018-01-15 16:09:58.28 Code: 0xC001600C
Source:
PackageSchedule Connection manager "ReportServer08"
Description:
Server authentication failed. This error occurs when login credentials
are not provided, or the credentials are incorrect. )
I have tried to change the "ProtectionLevel" to "EncryptSensitiveWithPassword" and also "Donset upSensitive".
I setup a subscription to the report just to make sure it wasn't a read/write error to the specific folder and the subscription ran without error as well.
Any help on this would be greatly appreciated.
According to this SO answer the issue was related to a date type issue. You could be experiencing the same thing
Thank-you for the feedback. I was able to figure it out. On Import of the package to SQL itself I changed the 'Protection Level' to 'Rely on server storage and roles for access control'. This allowed the job to execute successfully and everything looks great!
I just created an instance of SQL Server Express in Amazon RDS since I want to perform a test but I need to add a sample database "AdventureWorksLT2012_Data" that is in extension .mdf.
I got to connect to the database without problems through MSSMS but when I try to attach the BD that I have locally I can not do it
And I tried to investigate in the AWS documentation the way to attach this type of files to the instance of my BD but I can not calculate any reference.
Thanks for your response.
I managed to add the .mdf file to the RDS cloud but when I tried to add it to the database instance using the following command:
exec msdb.dbo.rds_restore_database
#restore_db_name='AdventureWorksLT',
#s3_arn_to_restore_from='arn:aws:s3:::sqlserverp/Andveruteworks.mdf';
I got the following error
[2017-11-22 20:40:22.247] The media family on device '0FEAAE12-E9A1-4D84-8AEF-39AD0FFB496A' is incorrectly formed. SQL Server cannot process this media family. [2017-11-22 20:40:22.250] RESTORE FILELIST is terminating abnormally. [2017-11-22 20:40:22.267] Aborted the task because of a task failure or a concurrent RESTORE_DB request. [2017-11-22 20:40:22.373] Invalid attempt to read when no data is present.
The only thing that I want to do was to use a backup of the database (.bak) which I uploaded to the S3 AWS service and later guiding me on the following documentation
enter link description here
and using the following stored procedures I managed to attach the BD to the instance of my sql server
exec msdb.dbo.rds_restore_database
#restore_db_name='AdventureWorksLT',
#s3_arn_to_restore_from='arn:aws:s3:::sqlserverp/AdventureWorks2012-FullDatabaseBackup.bak';
exec msdb.dbo.rds_task_status