Curl command in oracle.

Syntax:
curl -v -T “Zip file” -o output -u “mailid of DBA” “path of OracleSR” |
Actual Command:
curl -v -T “/u01/logs/oms_dump_29.06.06.02:48:29.zip” -o output -u “dba@Ajara.com” “https://transport.oracle.com/upload/issue/3-2379232419 |
Zip file: /u01/logs/oms_dump_29.06.06.02:48:29.zip
Successful output is given below.
oracle.ORASRVR: ls -ltr
total 15880
-rw-r—– 1 oracle oinstall 16254851 Jun 6 03:50 oms_dump_29.06.06.02:48:29.zip
curl -v -T “/u01/logs/oms_dump_29.06.06.02:48:29.zip” -o output -u “dba@Ajara.com” “https://transport.oracle.com/upload/issue/3-2379232419
oracle.ORASRVR: curl -v -T “/u01/logs/oms_dump_29.06.06.02:48:29.zip” -o output -u “dba@Ajara.com” “https://transport.oracle.com/upload/issue/3-2379232419”
Output:
Enter host password for user ‘dba@Ajara.com’: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0* About to connect() to transport.oracle.com port 443 (#0) * Trying 141.146.1.169… * Connected to transport.oracle.com (141.146.1.169) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none 0 0 0 0 0 0 0 0 –:–:– 0:00:07 –:–:– 0* SSL connection using TLS_RSA_WITH_AES_128_CBC_SHA * Server certificate: * subject: CN=*.oracle.com,OU=Oracle PEO ADC,O=Oracle Corporation,L=Redwood City,ST=California,C=US * start date: Jan 06 00:00:00 2020 GMT * expire date: Mar 06 12:00:00 2021 GMT * common name: *.oracle.com * issuer: CN=DigiCert SHA2 Secure Server CA,O=DigiCert Inc,C=US * Server auth using Basic with user ‘dba@Ajara.com’ > PUT /upload/issue/3-23279232419 HTTP/1.1 > Authorization: Basic amdvbGlAY3NjLmNvbTpDMG1wbGUxZWRAdmY= > User-Agent: curl/7.29.0 > Host: transport.oracle.com > Accept: */* > Content-Length: 16254851 > Expect: 100-continue > < HTTP/1.1 100 Continue } [data not shown] 2 15.5M 0 0 2 368k 0 45375 0:05:58 0:00:08 0:05:50 45390< HTTP/1.1 405 Method Not Allowed < Date: Sat, 06 Jun 2020 08:11:02 GMT < Content-Length: 0 < Allow: POST,OPTIONS < Connection: close < * we are done reading and this is set to close, stop send 2 15.5M 0 0 2 384k 0 46321 0:05:50 0:00:08 0:05:42 46337 * Closing connection 0 oracle.ORASRVR: curl -v -T “/u01/logs/oms_dump_29.06.06.02:48:29.zip” -o output -u “dba@Ajara.com” “https://transport.oracle.com/upload/issue/3-2379232419” oracle.ORASRVR: oracle.ORASRVR: sh sh-4.2$ pwd /u01/logs sh-4.2$ curl -v -T “/u01/logs/oms_dump_29.06.06.02:48:29.zip” -o output -u “dba@Ajara.com” “https://transport.oracle.com/upload/issue/3-2379232419” Enter host password for user ‘dba@Ajara.com’: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0* About to connect() to transport.oracle.com port 443 (#0) * Trying 141.146.1.169… * Connected to transport.oracle.com (141.146.1.169) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none 0 0 0 0 0 0 0 0 –:–:– 0:00:10 –:–:– 0* NSS error -5961 (PR_CONNECT_RESET_ERROR) * TCP connection reset by peer 0 0 0 0 0 0 0 0 –:–:– 0:00:10 –:–:– 0 * Closing connection 0 curl: (35) TCP connection reset by peer sh-4.2$ which curl /usr/bin/curl sh-4.2$ curl -v -T “/u01/logs/oms_dump_29.06.06.02:48:29.zip” -o output -u “dba@Ajara.com” “https://transport.oracle.com/upload/issue/3-2379232419” Enter host password for user ‘dba@Ajara.com’: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0* About to connect() to transport.oracle.com port 443 (#0) * Trying 141.146.1.169… * Connected to transport.oracle.com (141.146.1.169) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none 0 0 0 0 0 0 0 0 –:–:– 0:00:06 –:–:– 0* SSL connection using TLS_RSA_WITH_AES_128_CBC_SHA * Server certificate: * subject: CN=*.oracle.com,OU=Oracle PEO ADC,O=Oracle Corporation,L=Redwood City,ST=California,C=US * start date: Jan 06 00:00:00 2020 GMT * expire date: Mar 06 12:00:00 2021 GMT * common name: *.oracle.com * issuer: CN=DigiCert SHA2 Secure Server CA,O=DigiCert Inc,C=US 0 0 0 0 0 0 0 0 –:–:– 0:00:06 –:–:– 0* Server auth using Basic with user ‘dba@Ajara.com’ > PUT /upload/issue/3-23279232419 HTTP/1.1 > Authorization: Basic amdvbGlAY3NjLmNvbTpDMG1wbGUxZWRAdmY= > User-Agent: curl/7.29.0 > Host: transport.oracle.com > Accept: */* > Content-Length: 16254851 > Expect: 100-continue > < HTTP/1.1 100 Continue } [data not shown] 4 15.5M 0 0 4 784k 0 102k 0:02:35 0:00:07 0:02:28 102k< HTTP/1.1 405 Method Not Allowed < Date: Sat, 06 Jun 2020 08:19:01 GMT < Content-Length: 0 < Allow: POST,OPTIONS < Connection: close < * we are done reading and this is set to close, stop send 4 15.5M 0 0 4 784k 0 98k 0:02:40 0:00:07 0:02:33 98k * Closing connection 0
|
See Also: