I am building transformation in Penthao.My requirment is to read data from an xlxs file present on the remote Linux server and then write that data to a Database table.
Could you please explain how this can be done...?
Try to give the linux remote path directly in the File/Directory path.
Hope this will solve your issue !!! :)
Related
i have a .bak file and i want to check its data before importing it to host ! i tried to open it with MS SQL server management studio to see data inside the backup file. i googled a lot but i couldnt understand how to open this file ! i saw every solution to import a .bak file in a existed database ! i have no database on my local computer. how can i check my backup file data ? anyone can help ?
thanks in advance !
There are some 3rd party tools. Try searching google for "open bak file without sql server".
Also there is free SQL express, so you can install server on your local computer and attach database. Default installation should do the trick.
You can even open it in notepad, but it's not very practical..
I know we can write a Stored Procedure/Bulk Insert to read the files that are located on the same Windows Server as SQL Server and update the database but not sure how to do it when the files are present in LINUX.
Any help would be greatly appreciated
Assuming you can access those files through some network file share, SSIS would likely be the tool to use. If It's just a 1-time or ad-hoc occurrence, the SQL Server Import and Export tool would likely be the easiest solution.
I have a centos Linux machine and a oracle server installed on a server which is located at a remote location.
I have installed oracle client on my Linux centos machine using the link :
How to install SQL * PLUS client in linux
It may be noted that while installing client there was no /network/admin directory and hence no tnsnames.ora file. now I have manually created the directories and have have created a tnsnames.ora file. I am able to connect to remote server.
Now when I look into the bin folder I get just three exe
adrci genezi sqlplus.
I cant find the imp.
Hence when I try to import the dump file from centos to oracle , I get the error:
-bash: imp: command not found
I am using the following command to import dump on oracle server:
imp 'rdsuser#(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=oracledbrds.cwuabchlhlu.us-east-2.rds.amazonaws.com)(Port=1521))(CONNECT_DAT A(SID=oracledb)))'
Kindly help
The instant client does not include many of the tools from the full client, including imp/exp, their newer data pump equivalents, SQL*Loader etc. See the instant client FAQ, which highlights that it's largely for distribution with your own applications, but can incude SQL*Plus - the only tool mentioned.
If you need to use export/import or any other tools then you will need to install the full client, or run them on the server; which might be an issue with AWS. Amazon have an article on importing data into Oracle.
Incidentally, you can put your tnsnames.ora file anywhere as long as you set TNS_ADMIN to point to that location, but you aren't referring to it in your imp command anyway - you're specifying all the connection data. If you know the service name, which may be different to the SID (you can run lsnrctl services on the server to find the right value) you can use the 'easy connect' syntax:
sqlplus rdsuser#//oracledbrds.cwuabchlhlu.us-east-2.rds.amazonaws.com:1521/your_service_name
I have been given an assignment to fix the bugs in a website.
They give me the username and password to access the file in the hosting.
I'm using FileZilla and got all the source but the database .sql file is nowhere to be found
Any idea where the .sql went and how do I get it from the website using FileZilla?
thanks
You have to dump your database to .sql file first. Only then you can download it.
Assuming MySQL, see How to dump mysql database?
If you have phpMyAdmin (or a similar tool) available, you can dump and download the .sql file at once from the web interface directly.
using cpanel server, setting a simple "lynx http://www.domain.com/script.php" command gives following error and I am unable to understand it.
Lynx file "/etc/lynx.lss" is not available.
the problem is the SHELL.
You can solve this problem via two ways:
1] I simply changed the sentence:
SHELL="/usr/local/cpanel/bin/jailshell"
in /var/spool/cron/account
to SHELL="/bin/bash"
2] You can copy file /etc/lynx.lss
to directory: /home/virtfs/account/etc
Both worked for me !
Wilhelm
You can create an empty (or not) style sheet file in a directory where you have write access, then explicitly point to that file on the lynx command-line:
lynx -lss=/path/to/my/lynx.lss ...
I enabled shell access for the account and it started working. The above answer seems to assume you have access to the entire server and can modify those files, if so then just enable shell access and you are set, but if you are on a shared hosting account basic cpanel and ftp access you may not be able to do it. Ask you hosting company if you can have shell access. Then decide what you can do depending on the answer they give you.
you can solve this issue by follow below process :-
Open this file
root#server [~]# vi /var/cpanel/exim.conf.deps
and append below entries and save it.
/etc/lynx.lss