Re: Backing up tables
Posted in 2001
At 01:30 01/02/14 -0500, Muhammad Usman wrote: Hi Muhammad. Please try following this. 1. select database stores_demo. 2. unload to "/dev/rmt/0n" select * from state; 3. mt -f /dev/rmt/0n rew 4. execute a.out e.g) % cat o.c #include <stdio.h> #include <fcntl.h> #include <errno.h> main() { int fd; char buff[4096]; int rtn; fd = open("/dev/rmt/0", O_RDONLY); if (fd == -1) { printf("errno = %d\\n", errno); exit(9); } rtn = read(fd, buff, 4095); printf("rtn %d\\n", rtn); buff[rtn] = NULL; printf("buff = \\n%s\\n", buff); } % a.out rtn 697 buff = AK|Alaska| ... DC|D.C.| PR|Puerto Rico| >Hi > >Is there a way to backup selected tables on Tape using no rewind? > >Usman >musman@iffco.com > >------------------------------------------------------------ > Get your FREE web-based e-mail and newsgroup access at: > http://MailAndNews.com > > Create a new mailbox, or access your existing IMAP4 or > POP3 mailbox from anywhere with just a web browser. >------------------------------------------------------------ > -- Tsutomu Ogiwara Technical Group & Red Brick Group, Informix Sales Promotion Dept ITOCHU TECHNO-SCIENCE Corporation YASUKUNI KUDAN-MINAMI BLDG., 2-3-14, KUDAN-MINAMI, CHIYODA-KU TOKYO,1 02-0074 JAPAN Phone:+81-3-5212-4891 Fax:+81-3-5212-4889 E-mail:Tsutomu.Ogiwara@ctc-g.co.jp / tsutoo@my-deja.com