I am trying to copy data from a file that contains 2,194 records to a remote Vertica server. I copied the vsql client from the server to client.
Here is the command I am running on the client:
Code: Select all
vsql -h myvertica_host1 -U dbadmin -c "copy date_dim from local '/mnt/data/db_data/vertica_date_dim.txt' direct no escape null as '\N';"
Code: Select all
dbadmin=> select user_name, current_statement from sessions where current_statement is not null;
user_name | current_statement
-----------+-------------------------------------------------------------------------------------------------------
dbadmin | copy date_dim from local '/mnt/data/db_data/vertica_date_dim.txt' direct no escape null as '\N';
dbadmin | select user_name, current_statement from sessions where current_statement is not null;
(2 rows)
Is there something I'm missing about the copy local command? I'm running as dbadmin so there shouldn't be any permission issues I would think.
Thanks for your time,
Harry