Package giving error

Hi all,
I have used TOM's query for my DBF downloading
create or replace
package body dbase_pkg
as
-- Might have to change depending on platform!!!
-- Controls the byte order of binary integers read in
-- from the dbase file
BIG_ENDIAN      constant boolean default TRUE;
type dbf_header is RECORD
    version    varchar2(25), -- dBASE version number
    year       int,          -- 1 byte int year, add to 1900
    month      int,          -- 1 byte month
    day        int,             -- 1 byte day
    no_records VARCHAR2(8),             -- number of records in file,
                             -- 4 byte int
    hdr_len    VARCHAR2(4),             -- length of header, 2 byte int
    rec_len    VARCHAR2(4),             -- number of bytes in record,
                             -- 2 byte int
    no_fields  int           -- number of fields
type field_descriptor is RECORD
    name     varchar2(11),
    fname    varchar2(30),
    type     char(1),
    length   int,   -- 1 byte length
    decimals int    -- 1 byte scale
type field_descriptor_array
is table of
field_descriptor index by binary_integer;
type rowArray
is table of
varchar2(4000) index by binary_integer;
g_cursor binary_integer default dbms_sql.open_cursor;
function ite( tf in boolean, yes in varchar2, no in varchar2 )
        return varchar2
is
begin
    if ( tf ) then
       return yes;
    else
       return no;
    end if;
end ite;
-- Function to convert a binary unsigned integer
-- into a PLSQL number
function to_int( p_data in varchar2 ) return number
is
    l_number number default 0;
    l_bytes  number default length(p_data);
begin
    if (big_endian)
    then
        for i in 1 .. l_bytes loop
            l_number := l_number +
                              ascii(substr(p_data,i,1)) *
                                           power(2,8*(i-1));
        end loop;
    else
        for i in 1 .. l_bytes loop
            l_number := l_number +
                         ascii(substr(p_data,l_bytes-i+1,1)) *
                         power(2,8*(i-1));
        end loop;
    end if;
    return l_number;
end;
-- Routine to parse the DBASE header record, can get
-- all of the details of the contents of a dbase file from
-- this header
procedure get_header
(p_bfile        in bfile,
p_bfile_offset in out NUMBER,
p_hdr          in out dbf_header,
p_flds         in out field_descriptor_array )
is
    l_data            varchar2(100);
    l_hdr_size        number default 32;
    l_field_desc_size number default 32;
    l_flds            field_descriptor_array;
begin
    p_flds := l_flds;
    l_data := utl_raw.cast_to_varchar2(
                       dbms_lob.substr( p_bfile,
                                        l_hdr_size,
                                        p_bfile_offset ) );
    p_bfile_offset := p_bfile_offset + l_hdr_size;
    p_hdr.version    := ascii( substr( l_data, 1, 1 ) );
    p_hdr.year       := 1900 + ascii( substr( l_data, 2, 1 ) );
    p_hdr.month      := ascii( substr( l_data, 3, 1 ) );
    p_hdr.day        := ascii( substr( l_data, 4, 1 ) );
    p_hdr.no_records := to_int( substr( l_data,  5, 4 ) );
    p_hdr.hdr_len    := to_int( substr( l_data,  9, 2 ) );
    p_hdr.rec_len    := to_int( substr( l_data, 11, 2 ) );
    p_hdr.no_fields  := trunc( (p_hdr.hdr_len - l_hdr_size)/
                                           l_field_desc_size );
    for i in 1 .. p_hdr.no_fields
    loop
        l_data := utl_raw.cast_to_varchar2(
                         dbms_lob.substr( p_bfile,
                                          l_field_desc_size,
                                          p_bfile_offset ));
        p_bfile_offset := p_bfile_offset + l_field_desc_size;
        p_flds(i).name := rtrim(substr(l_data,1,11),chr(0));
        p_flds(i).type := substr( l_data, 12, 1 );
        p_flds(i).length  := ascii( substr( l_data, 17, 1 ) );
        p_flds(i).decimals := ascii(substr(l_data,18,1) );
    end loop;
    p_bfile_offset := p_bfile_offset +
                          mod( p_hdr.hdr_len - l_hdr_size,
                               l_field_desc_size );
end;
function build_insert
( p_tname in varchar2,
  p_cnames in varchar2,
  p_flds in field_descriptor_array ) return varchar2
is
    l_insert_statement long;
begin
    l_insert_statement := 'insert into ' || p_tname || '(';
    if ( p_cnames is NOT NULL )
    then
        l_insert_statement := l_insert_statement ||
                              p_cnames || ') values (';
    else
        for i in 1 .. p_flds.count
        loop
            if ( i <> 1 )
            then
               l_insert_statement := l_insert_statement||',';
            end if;
            l_insert_statement := l_insert_statement ||
                            '"'||  p_flds(i).name || '"';
        end loop;
        l_insert_statement := l_insert_statement ||
                                           ') values (';
    end if;
    for i in 1 .. p_flds.count
    loop
        if ( i <> 1 )
        then
           l_insert_statement := l_insert_statement || ',';
        end if;
        if ( p_flds(i).type = 'D' )
        then
            l_insert_statement := l_insert_statement ||
                     'to_date(:bv' || i || ',''yyyymmdd'' )';
        else
            l_insert_statement := l_insert_statement ||
                                                ':bv' || i;
        end if;
    end loop;
    l_insert_statement := l_insert_statement || ')';
    return l_insert_statement;
end;
function get_row
( p_bfile in bfile,
  p_bfile_offset in out number,
  p_hdr in dbf_header,
  p_flds in field_descriptor_array ) return rowArray
is
    l_data     varchar2(4000);
    l_row   rowArray;
    l_n     number default 2;
begin
    l_data := utl_raw.cast_to_varchar2(
                   dbms_lob.substr( p_bfile,
                                    p_hdr.rec_len,
                                    p_bfile_offset ) );
    p_bfile_offset := p_bfile_offset + p_hdr.rec_len;
    l_row(0) := substr( l_data, 1, 1 );
    for i in 1 .. p_hdr.no_fields loop
        l_row(i) := rtrim(ltrim(substr( l_data,
                                        l_n,
                                        p_flds(i).length ) ));
        if ( p_flds(i).type = 'F' and l_row(i) = '.' )
        then
            l_row(i) := NULL;
        end if;
        l_n := l_n + p_flds(i).length;
    end loop;
    return l_row;
end get_row;
procedure show( p_hdr    in dbf_header,
                p_flds   in field_descriptor_array,
                p_tname  in varchar2,
                p_cnames in varchar2,
                p_bfile  in bfile )
is
    l_sep varchar2(1) default ',';
    procedure p(p_str in varchar2)
    is
        l_str long default p_str;
    begin
        while( l_str is not null )
        loop
            dbms_output.put_line( substr(l_str,1,250) );
            l_str := substr( l_str, 251 );
        end loop;
    end;
begin
    p( 'Sizeof DBASE File: ' || dbms_lob.getlength(p_bfile) );
    p( 'DBASE Header Information: ' );
    p( chr(9)||'Version = ' || p_hdr.version );
    p( chr(9)||'Year    = ' || p_hdr.year   );
    p( chr(9)||'Month   = ' || p_hdr.month   );
    p( chr(9)||'Day     = ' || p_hdr.day   );
    p( chr(9)||'#Recs   = ' || p_hdr.no_records);
    p( chr(9)||'Hdr Len = ' || p_hdr.hdr_len  );
    p( chr(9)||'Rec Len = ' || p_hdr.rec_len  );
    p( chr(9)||'#Fields = ' || p_hdr.no_fields );
    p( chr(10)||'Data Fields:' );
    for i in 1 .. p_hdr.no_fields
    loop
        p( 'Field(' || i || ') '
             || 'Name = "' || p_flds(i).name || '", '
             || 'Type = ' || p_flds(i).Type || ', '
             || 'Len  = ' || p_flds(i).length || ', '
             || 'Scale= ' || p_flds(i).decimals );
    end loop;
    p( chr(10) || 'Insert We would use:' );
    p( build_insert( p_tname, p_cnames, p_flds ) );
    p( chr(10) || 'Table that could be created to hold data:');
    p( 'create table ' || p_tname );
    p( '(' );
    for i in 1 .. p_hdr.no_fields
    loop
        if ( i = p_hdr.no_fields ) then l_sep := ')'; end if;
        dbms_output.put
        ( chr(9) || '"' || p_flds(i).name || '"   ');
        if ( p_flds(i).type = 'D' ) then
            p( 'date' || l_sep );
        elsif ( p_flds(i).type = 'F' ) then
            p( 'float' || l_sep );
        elsif ( p_flds(i).type = 'N' ) then
            if ( p_flds(i).decimals > 0 )
            then
                p( 'number('||p_flds(i).length||','||
                              p_flds(i).decimals || ')' ||
                              l_sep );
            else
                p( 'number('||p_flds(i).length||')'||l_sep );
            end if;
        else
            p( 'varchar2(' || p_flds(i).length || ')'||l_sep);
        end if;
    end loop;
    p( '/' );
end;
procedure load_Table( p_dir in varchar2,
                      p_file in varchar2,
                      p_tname in varchar2,
                      p_cnames in varchar2 default NULL,
                      p_show in boolean default FALSE )
is
    l_bfile      bfile;
    l_offset  number default 1;
    l_hdr     dbf_header;
    l_flds    field_descriptor_array;
    l_row      rowArray;
begin
    l_bfile := bfilename( p_dir, p_file );
    dbms_lob.fileopen( l_bfile );
    get_header( l_bfile, l_offset, l_hdr, l_flds );
    if ( p_show )
    then
        show( l_hdr, l_flds, p_tname, p_cnames, l_bfile );
    else
        dbms_sql.parse( g_cursor,
                        build_insert(p_tname,p_cnames,l_flds),
                        dbms_sql.native );
        for i in 1 .. l_hdr.no_records loop
            l_row := get_row( l_bfile,
                              l_offset,
                              l_hdr,
                              l_flds );
            if ( l_row(0) <> '*' ) -- deleted record
            then
                for i in 1..l_hdr.no_fields loop
                    dbms_sql.bind_variable( g_cursor,
                                            ':bv'||i,
                                            l_row(i),
                                            4000 );
                end loop;
                if ( dbms_sql.execute( g_cursor ) <> 1 )
                then
                    raise_application_error( -20001,
                                 'Insert failed ' || sqlerrm );
                end if;
            end if;
        end loop;
    end if;
    dbms_lob.fileclose( l_bfile );
exception
    when others then
        if ( dbms_lob.isopen( l_bfile ) > 0 ) then
            dbms_lob.fileclose( l_bfile );
        end if;
        RAISE;
end;
procedure put_header (p_tname        in varchar2,
                        p_cnames       in varchar2 DEFAULT NULL,
                      l_hdr          in out dbf_header,
                      vFlds          in out field_descriptor_array)
is
v_value_list  strTableType;
vCursor   varchar2(2000);
type rc IS ref cursor;
col_cur rc;
i  INTEGER:=0;
begin
IF p_cnames IS NOT NULL THEN
    --select str2tbl(UPPER(p_cnames))
    --into v_value_list from dual;
    vCursor:='select substr(column_name,1,11),
                     case data_type
                     when ''DATE'' then ''D''
                     when ''NUMBER'' then ''N''
                     else ''C'' end ,
                     case data_type
                     when ''NUMBER'' then NVL(data_precision,22)
                     when ''DATE'' then 8
                     else data_length end,
                     case data_type
                     when ''NUMBER'' then data_scale
                     end ,
                     column_name   from all_tab_cols
                where column_name IN (select * from TABLE (cast(str2tbl(UPPER('''||p_cnames||'''))
as strTableType)))
                and   table_name='''||upper(p_tname)||'''
                order by column_id';
else
    vCursor:='select SUBSTR(column_name,1,11),
                     case data_type
                     when ''DATE'' then ''D''
                     when ''NUMBER'' then ''N''
                     else ''C'' end ,
                     case data_type
                     when ''NUMBER'' then NVL(data_precision,22)
                     when ''DATE'' then 8
                     else data_length end,
                     case data_type
                     when ''NUMBER'' then data_scale
                     end ,
                     column_name
              from all_tab_cols
              where table_name='''||upper(p_tname)||'''
              order by column_id';
END IF;
open col_cur for vCursor;
loop
    i:=i+1;
    fetch col_cur into
vFlds(i).name,vFlds(i).type,vFlds(i).length,vFlds(i).decimals,vFlds(i).fname;
    exit when col_cur%notfound;
end loop;
close col_cur;
l_hdr.version    :='03';
l_hdr.year       :=to_number(to_char(sysdate,'yyyy'))-1900;
l_hdr.month      :=to_number(to_char(sysdate,'mm'));
l_hdr.day        :=to_number(to_char(sysdate,'dd'));
l_hdr.rec_len    :=1; -- to be set later
l_hdr.no_fields  :=vFlds.COUNT;
l_hdr.hdr_len    :=to_char((l_hdr.no_fields*32)+33,'FM000x');
end;
procedure put_rows (p_tname IN  varchar2,
                      p_where_clause in varchar2 default '1=1 ',
                    vRow in out rowarray,
                    vFlds in field_descriptor_array)
is
type rc is ref cursor;
cur rc;
i  integer:=0;
vSelectList  VARCHAR2(32767);
v_cur VARCHAR2(32767);
begin
for l in 1..vFlds.count loop
    vSelectList:=vSelectList||ite(l!=1,'||','')||'utl_raw.cast_to_raw(rpad(NVL('|| case when
vFlds(l).type='N' then 'to_char(' end ||vFlds(l).fname||case when vFlds(l).type='N' then ')' end
||','' ''),'||vFlds(l).length||','' ''))';
end loop;
v_cur:='select '||vSelectList||' from '||p_tname||' where '||p_where_clause;
open cur for v_cur;
loop
    i:=i+1;
    fetch cur into vRow(i);
    exit when cur%notfound;
end loop;
close cur;
end;
procedure dump_table (p_dir          in varchar2,
                        p_file         in varchar2,
                      p_tname        in varchar2,
                      p_cnames       in varchar2 default NULL,
                      p_where_clause in varchar2 default ' 1=1 ')
is
l_hdr dbf_header;
vFlds field_descriptor_array;
vRow  rowarray;
v_cnames  VARCHAR2(4000);
v_outputfile UTL_FILE.FILE_TYPE;
vCount int;
vStartTime  DATE;
vEndTime    DATE;
begin
    vStartTime:=sysdate;
    put_header(p_tname,p_cnames,l_hdr,vFlds);
    put_rows(p_tname,p_where_clause,vRow,vFlds);
    v_outputfile := utl_file.fopen(p_dir,p_file,'w',32767);
    for i in 1..vFlds.count loop
        l_hdr.rec_len:=l_hdr.rec_len+vFlds(i).length;
    end loop;
    l_hdr.rec_len    :=to_char(to_number(l_hdr.rec_len),'FM000x');
    l_hdr.rec_len   :=substr(l_hdr.rec_len,-2)||
                       substr(l_hdr.rec_len,1,2);
    l_hdr.no_records :=to_char(vRow.count,'FM0000000x');
    l_hdr.no_records:=substr(l_hdr.no_records,-2)||
                       substr(l_hdr.no_records,5,2)||
                      substr(l_hdr.no_records,3,2)||
                      substr(l_hdr.no_records,1,2);
    l_hdr.hdr_len:=substr(l_hdr.hdr_len,-2)||
                       substr(l_hdr.hdr_len,1,2);
    utl_file.put_raw(v_outputFile,
              rpad(l_hdr.version||to_char(l_hdr.year,'FM0x')||to_char(l_hdr.month,'FM0x')||
              to_char(l_hdr.day,'FM0x')||l_hdr.no_records||l_hdr.hdr_len||
              l_hdr.rec_len,64,'0'));
    for i in 1..vFlds.count loop
utl_file.put_raw(v_outputFile,utl_raw.cast_to_raw(vFlds(i).name)||replace(rpad('00',12-length(vFlds(
i).name),'#'),'#','00')||
                                      utl_raw.cast_to_raw(vFlds(i).type)||'00000000'||
to_char(vFlds(i).length,'FM0x')||'000000000000000000000000000000');
    end loop;
    -- terminator for the field names
    utl_file.put_raw(v_outputFile,'0D');
    for i in 1..vRow.count loop
        utl_file.put_raw(v_outputfile,'20'||vRow(i),TRUE);
            end loop;
    if utl_file.IS_OPEN(v_outputFile ) then
        UTL_FILE.FCLOSE(v_outputFile);
    end if;
    vEndTime:=sysdate;
    dbms_output.put_line('Started - '||to_char(vStartTime,'HH24:MI'));
    dbms_output.put_line('Finished - '||to_char(vEndTime,'HH24:mi'));
    dbms_output.put_line('Elapsed - '||to_char((vEndTime-vStartTime),'hh24:mi'));
exception
when others then
utl_file.fclose(v_outputFile);
    raise;
end;
end;when i try to execute this package i am getting the below error.
begin
dbase_pkg.dump_table('NFO_ARCHIVE_DIR','test.dbf','all_objects','owner,object_name,subobject_name,o
bject_id','rownum<100');
end;
Connecting to the database nfo.
ORA-01481: invalid number format model
ORA-06512: at "NFO.DBASE_PKG", line 569
ORA-06512: at line 14
Started - 19:15
Finished - 19:15
Process exited.
Disconnecting from the database nfo.Please help me out in this.
Thanks in advance
Cheers,
Shan

It is probably te calculation/formatting of your ELAPSED dbms_output.put_line.
It isn't showing and also:
SQL> select to_char((sysdate-(sysdate-1)),'hh24:mi') from dual;
select to_char((sysdate-(sysdate-1)),'hh24:mi') from dual
ERROR at line 1:
ORA-01481: invalid number format modelBut just check line 569 to make sure.

Similar Messages

  • Package giving error when executed through bat file

    The packages successfully execute in SQL Server Data Tools but when I use DTEXEC to execute it gives me the following error:
    "To run a SSIS package outside of SQL Server Data Tools you must install Send Mail Task of Integration Services or higher .
    I tried 5 different packages and all of them showed similar error except the send mail task is replaced by different other tasks of those packages.

    Go to start-> run
    Type Services.msc. It will launch services window.
    Check for a service named SQL Server Integration Services with or without version number. If its present it means SSIS is installed. Also make sure its started and is in running state.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • When we execute Package it is giving Error..!

    Hi,
    I want to know how to email through SQL*Plus in Oracle 10g. I found some packages from oracle site, but it is for only 8i. Then also i tryed to executed that package, but it is giving error as follows:
    SQL> Execute demo_mail.mail('[email protected]','[email protected]','test subject','
    test message');
    BEGIN demo_mail.mail('[email protected]','[email protected]','test subject','test me
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 97
    ORA-06512: at "SYS.UTL_SMTP", line 139
    ORA-06512: at "RAVI.DEMO_MAIL", line 240
    ORA-06512: at "RAVI.DEMO_MAIL", line 118
    ORA-06512: at "RAVI.DEMO_MAIL", line 104
    ORA-06512: at line 1
    Is there any way to solve this error. Why this error is coming. Through this site i got this:
    http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    For oracle 10g, we can use this package or any other packages to run this in Oracle 10g.
    Can any one suggest me...!
    Thank u..!
    Ravi

    Hi,
    Thank u for u r reply. In my system IIS is already installed
    In Add or Remove Programs->Add/Remove Wndows Components
    Checked the IIS check box.
    In Internet Information Service (IIS) option and clicked on Details button
    The SMTP Service is checked.
    And i am executing this package in client machine. I am using Oracle 10g. What more required for this to run this.
    Thank u..!
    Ravi

  • Package loading error

    Hi guys and girls
    I have develoed sim toolkit applet to send sms,its complied sucessfully and also converted successfully.But when i am loding this applet to
    java card its giving error like this:
    [b]error:package loading failed !
    loading ended with error:loading process failed1 !
    i am using simera 3 classic323 vodafone javacard.
    any suggestions will be highly appriciated.

    Hi,
    The selection condition is only planning version 700. There is no other selection conditions.
    I checked the process monitor and I can only find error messages Time Period Invalid and Errors in Source system. This error messages are not enough for trouble shooting.
    thanks and regards
    Murugesan

  • Pacman giving error after 'packman-key --init'

    Well after a long time i m back on arch. and i found out that pacman has changed and using pgp signature (happy now !). and everything is smooth except one thing pacman is still giving error and asks me to import pgp for every single package when i try to install something. here is an output :
    [root@Olympians hades]# pacman -S rhythmbox
    resolving dependencies...
    looking for inter-conflicts...
    Targets (32): aspell-0.60.6.1-1 clutter-1.8.2-2 clutter-gst-1.4.6-1
    clutter-gtk-1.0.4-1 cogl-1.8.2-1 enchant-1.6.0-4 gmime-2.6.4-1
    gobject-introspection-1.30.0-1 grilo-0.1.18-1 gvfs-1.10.1-2
    gvfs-afc-1.10.1-2 hspell-1.1-1 hunspell-1.3.2-1 icu-4.8.1.1-1
    json-glib-0.14.2-1 libdiscid-0.2.2-1 libdmapsharing-2.9.12-1
    libgpod-0.8.2-2 libmtp-1.1.1-1 libmusicbrainz3-3.0.3-1
    libpeas-1.2.0-1 libwebkit3-1.6.1-1 media-player-info-15-1
    mutagen-1.20-3 mx-1.4.1-1 pygobject-devel-3.0.3-1
    python2-beaker-1.6.2-1 python2-gobject-3.0.3-1
    python2-mako-0.5.0-2 python2-markupsafe-0.15-1
    totem-plparser-2.32.6-3 rhythmbox-2.95-1
    Total Installed Size: 129.07 MiB
    Proceed with installation? [Y/n] y
    (32/32) checking package integrity [----------------------] 100%
    error: grilo: key "A5E9288C4FA415FA" is unknown
    :: Import PGP key 4FA415FA, "Jan Alexander Steffens (heftig) <[email protected]>", created 2011-08-25? [Y/n] y
    error: icu: key "94657AB20F2A092B" is unknown
    :: Import PGP key 0F2A092B, "Andreas Radke <[email protected]>", created 2011-05-14? [Y/n] y
    error: enchant: key "976AC6FA3B94FA10" is unknown
    :: Import PGP key 3B94FA10, "Jan de Groot <[email protected]>", created 2011-06-06? [Y/n] y
    (32/32) checking package integrity [----------------------] 100%
    (32/32) loading package files [----------------------] 100%
    (32/32) checking for file conflicts [----------------------] 100%
    (32/32) checking available disk space [----------------------] 100%
    ( 1/32) installing json-glib [----------------------] 100%
    ( 2/32) installing cogl [----------------------] 100%
    ( 3/32) installing clutter [----------------------] 100%
    ( 4/32) installing clutter-gtk [----------------------] 100%
    ( 5/32) installing clutter-gst [----------------------] 100%
    ( 6/32) installing grilo [----------------------] 100%
    Optional dependencies for grilo
    grilo-plugins: Plugins for grilo
    ( 7/32) installing gvfs [----------------------] 100%
    Optional dependencies for gvfs
    gvfs-afc: AFC (mobile devices) support
    gvfs-smb: SMB/CIFS (Windows client) support
    gvfs-gphoto2: gphoto2 (PTP camera/MTP media player) support
    gvfs-obexftp: ObexFTP (bluetooth) support
    gvfs-afp: Apple Filing Protocol (AFP) support
    ( 8/32) installing gvfs-afc [----------------------] 100%
    ( 9/32) installing libdmapsharing [----------------------] 100%
    (10/32) installing mutagen [----------------------] 100%
    (11/32) installing libgpod [----------------------] 100%
    Optional dependencies for libgpod
    gtk-sharp-2: Mono bindings
    (12/32) installing libmtp [----------------------] 100%
    (13/32) installing libdiscid [----------------------] 100%
    (14/32) installing libmusicbrainz3 [----------------------] 100%
    (15/32) installing gobject-introspection [----------------------] 100%
    (16/32) installing libpeas [----------------------] 100%
    Optional dependencies for libpeas
    gjs: gobject-based plugin engine - gjs runtime loader
    seed: gbject-based plugin engine - seed runtime loader
    (17/32) installing icu [----------------------] 100%
    (18/32) installing aspell [----------------------] 100%
    ==> aspell comes with no default dictionary
    Optional dependencies for aspell
    perl: to import old dictionaries
    (19/32) installing hunspell [----------------------] 100%
    Optional dependencies for hunspell
    perl: for ispellaff2myspell
    (20/32) installing hspell [----------------------] 100%
    (21/32) installing enchant [----------------------] 100%
    (22/32) installing libwebkit3 [----------------------] 100%
    (23/32) installing media-player-info [----------------------] 100%
    (24/32) installing mx [----------------------] 100%
    (25/32) installing pygobject-devel [----------------------] 100%
    (26/32) installing python2-gobject [----------------------] 100%
    (27/32) installing python2-markupsafe [----------------------] 100%
    (28/32) installing python2-beaker [----------------------] 100%
    (29/32) installing python2-mako [----------------------] 100%
    (30/32) installing gmime [----------------------] 100%
    (31/32) installing totem-plparser [----------------------] 100%
    (32/32) installing rhythmbox [----------------------] 100%
    Optional dependencies for rhythmbox
    gstreamer0.10-ugly-plugins: Extra media codecs
    gstreamer0.10-bad-plugins: Extra media codecs
    gstreamer0.10-ffmpeg: Extra media codecs
    brasero: cd burning
    and here is my pacman.conf file.
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/curl -C - -f %u > %o
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl -C - %u > %o
    #CleanMethod = KeepInstalled
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #UseSyslog
    #ShowSize
    #UseDelta
    TotalDownload
    ILoveCandy
    CheckSpace
    # PGP signature checking
    # NOTE: None of this will work without running `pacman-key --init` first.
    # The compiled in default is equivalent to the following line. This requires
    # you to locally sign and trust packager keys using `pacman-key` for them to be
    # considered valid.
    #SigLevel = Optional TrustedOnly
    # If you wish to check signatures but avoid local sign and trust issues, use
    # the following line. This will treat any key imported into pacman's keyring as
    # trusted.
    SigLevel = Optional TrustAll
    # For now, off by default unless you read the above.
    #SigLevel = Never
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # - URLs will have $arch replaced by the name of the architecture
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    ## Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/mirrorlist
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    ## Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/mirrorlist
    #[multilib]
    ## Add your preferred servers here, they will be used first
    #Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    i searched it but i am not sure i understood it quite very well. anyway thanks for help. and its good to be back !!!

    so can anyone of you post your pacman.conf file that is already merged ?? and when i press y when it prompts to import the key it doesn't really import it ! and i dont understand this - i m able to install single package but cant upgrade the system ! okay here is the output -
    [hades@Olympians ~]$ sudo pacman -Syu
    :: Synchronizing package databases...
    core 106.4 KiB 23.1K/s 00:05 [----------------------] 100%
    extra 1186.2 KiB 93.1K/s 00:13 [----------------------] 100%
    community 1048.9 KiB 114K/s 00:09 [----------------------] 100%
    :: Starting full system upgrade...
    :: Replace module-init-tools with core/kmod? [Y/n] y
    resolving dependencies...
    looking for inter-conflicts...
    Targets (204): alsa-firmware-1.0.25-1 alsa-lib-1.0.25-1 alsa-oss-1.0.25-1
    alsa-utils-1.0.25-1 ati-dri-7.11.2-1 autoconf-2.68-2
    automake-1.11.2-1 avahi-0.6.30-6 bash-4.2.020-1
    binutils-2.22-4 bison-2.5-3 bzip2-1.0.6-3
    ca-certificates-20111211-1 cifs-utils-5.2-1 colord-0.1.16-1
    conky-1.8.2git20111107-1 consolekit-0.4.5-2 coreutils-8.15-1
    cracklib-2.8.18-2 cryptsetup-1.4.1-1 curl-7.24.0-1
    db-5.3.15-1 deadbeef-0.5.1-4 desktop-file-utils-0.19-1
    dhcpcd-5.2.12-4 dialog-1.1_20111020-1 dnsutils-9.8.1-2
    dosfstools-3.0.12-1 e2fsprogs-1.42-1 enca-1.13-2
    eventlog-0.2.12-3 expat-2.0.1-7 fakeroot-1.18.2-1 file-5.10-1
    filesystem-2011.12-2 findutils-4.4.2-4
    flashplugin-11.1.102.55-1 flex-2.5.35-5 freeglut-2.8.0-1
    gawk-4.0.0-2 gcc-4.6.2-6 gcc-libs-4.6.2-6 gdbm-1.10-1
    gdk-pixbuf2-2.24.1-1 gettext-0.18.1.1-4
    glib-networking-2.30.2-1 glib2-2.30.2-1 glibc-2.15-4
    glibmm-2.30.1-1 gmtk-1.0.5-2 gnome-icon-theme-symbolic-3.2.2-1
    gnome-keyring-3.2.2-3 gnome-mplayer-1.0.5-1 gnutls-3.0.12-1
    gpm-1.20.6-7 grep-2.10-1 groff-1.21-2 grub-0.97-21
    gstreamer0.10-bad-0.10.22-3 gstreamer0.10-bad-plugins-0.10.22-3
    gstreamer0.10-ffmpeg-0.10.13-1 gstreamer0.10-ugly-0.10.18-4
    gstreamer0.10-ugly-plugins-0.10.18-4
    gtk-update-icon-cache-2.24.9-1 gtk2-2.24.9-1 gtk3-3.2.3-2
    gucharmap-3.2.2-1 gzip-1.4-4 heirloom-mailx-12.5-3
    idnkit-1.0-2 inetutils-1.9.1-1 initscripts-2012.01.3-1
    intel-dri-7.11.2-1 intltool-0.50.0-1 iproute2-3.2.0-2
    iputils-20101006-2 jack-0.121.3-5 jfsutils-1.1.15-3
    jshon-20111222-1 keyutils-1.5.5-1 kmod-4-1 krb5-1.9.2-2
    lame-3.99.3-1 lcms2-2.3-1 less-444-2 libass-0.10.0-3
    libbluray-0.2.1-1 libburn-1.1.8-1 libcap-2.22-2
    libcroco-0.6.3-1 libdatrie-0.2.5-1 libdrm-2.4.30-1
    libdvdnav-4.2.0-2 libdvdread-4.2.0-1 libevent-2.0.16-1
    libgl-7.11.2-1 libglapi-7.11.2-1 libgnome-keyring-3.2.2-1
    libgphoto2-2.4.11-1 libgusb-0.1.3-1 libiec61883-1.2.0-3
    libjpeg-turbo-1.1.1-4 libldap-2.4.28-2 libpcap-1.2.1-1
    libpipeline-1.2.0-2 libpulse-1.1-2 librsvg-2.34.2-1
    libsasl-2.1.23-9 libthai-0.1.16-1 libusb-1.0.8-2
    libusb-compat-0.1.3-2 libvdpau-0.4.1-2 libxfce4ui-4.8.1-1
    libxi-1.4.5-1 libxrandr-1.3.2-2 linux-3.2.2-1
    linux-firmware-20111101-1 lirc-utils-1:0.9.0-10
    lxappearance-0.5.1-3 m4-1.4.16-2 mach64-dri-7.11.2-1
    man-db-2.6.0.2-3 mdadm-3.2.3-1 mesa-7.11.2-1 mga-dri-7.11.2-1
    mjpegtools-2.0.0-1 mkinitcpio-0.8.2-1
    module-init-tools-3.16-1 [removal] mpfr-3.1.0.p3-1
    mpg123-1.13.4-2 mplayer-34426-1 nano-2.2.6-2 ncurses-5.9-2
    network-manager-applet-0.9.2.0-1 networkmanager-0.9.2.0-1
    nss-3.13.1-2 obmenu-1.0-9 openbox-themes-1.0.2-2
    openssl-1.0.0.g-1 p11-kit-0.9-1 pam-1.1.5-2 parted-3.0-4
    patch-2.6.1-3 pciutils-3.1.8-1 pcre-8.21-1 perl-5.14.2-7
    pixman-0.24.2-1 pkg-config-0.26-2 pm-quirks-0.20100619-2
    polkit-0.103-1 poppler-0.18.3-1 poppler-glib-0.18.3-1
    popt-1.16-4 ppp-2.4.5-3 python-distutils-extra-2.29-1
    python-imaging-1.1.7-4 python2-2.7.2-4 r128-dri-7.11.2-1
    raptor-2.0.6-1 readline-6.2.002-1 reiserfsprogs-3.6.21-4
    run-parts-4.0.4-1 savage-dri-7.11.2-1 scrot-0.8-5
    sdl-1.2.15-1 sed-4.2.1-4 sg3_utils-1.33-1 shadow-4.1.4.3-5
    shared-color-profiles-0.1.5-1 sis-dri-7.11.2-1
    smbclient-3.6.2-1 sqlite3-3.7.10-1 startup-notification-0.12-2
    sysfsutils-2.1.0-7 syslinux-4.05-1 syslog-ng-3.3.4-1
    talloc-2.0.7-1 tar-1.26-2 tdfx-dri-7.11.2-1 texinfo-4.13a-7
    transmission-gtk-2.42-2 tzdata-2011n-1 udev-179-1
    unrar-4.1.4-1 upower-0.9.15-1 util-linux-2.20.1-2
    vi-1:050325-2 wavpack-4.60.1-2 which-2.20-5
    wireless_tools-29-6 wpa_supplicant-0.7.3-4 x264-20111030-1
    xcb-util-0.3.8-1 xf86-input-joystick-1.6.0-3
    xf86-video-ati-6.14.3-1 xf86-video-intel-2.17.0-2
    xf86-video-vmware-11.1.0-1 xfconf-4.8.1-1 xfsprogs-3.1.7-1
    xkeyboard-config-2.5-1 xorg-server-1.11.3-1
    xorg-server-common-1.11.3-1 xorg-xinit-1.3.1-2
    zathura-0.0.8.5-4
    Total Download Size: 7.87 MiB
    Total Installed Size: 898.19 MiB
    Net Upgrade Size: 20.59 MiB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from core...
    glibc-2.15-4-i686 7.1 MiB 118K/s 01:02 [----------------------] 90%
    e2fsprogs-1.42-1-i686 7.9 MiB 118K/s 01:08 [----------------------] 100%
    (203/203) checking package integrity [----------------------] 100%
    (203/203) loading package files [----------------------] 100%
    (203/203) checking for file conflicts [----------------------] 100%
    error: failed to commit transaction (conflicting files)
    filesystem: /etc/mtab exists in filesystem
    Errors occurred, no packages were upgraded.
    [hades@Olympians ~]$

  • *Superpackage missing for package Package Z_ART_MAPPROVE* error in SE80

    Dear Experts,
    Devalopers are not able to create package in MI 7.1
    its giving error like Superpackage missing for package Package Z_ART_MAPPROVE
    for developer package.
    Even for my admin user-id its showing same error.... means we cant say its an authorization error.
    What to do.
    Pls reply me asap..
    Regrads,
    Gaurav Jain
    Edited by: Gaurav_Tiku_anni_jain on May 22, 2009 12:09 PM

    Every package whatever created by user should be part of some package. So, while creation of package, you have to select the super package name from the input list available while creating package.
    If the Software component is choosen as 'LOCAL' while creation of package, then you have to select $TMP as super package. For any other type of software component we need to select super package (Either BASIS or your own package if you are creating sup-package).
    Regards,
    Siva.
    Edited by: Siva Satya Prasad Yerra on May 25, 2009 2:35 PM

  • Item Open Interface giving error for Org Assignment

    We ran the MTL_SYSTEMS_ITEMS_INTERFACE & loaded all the items at master level.
    We are having issues in setting at Org level. Cant figure out what the issue as only few records gets assigned & then garbage sets in for remaining records. An SR has been raised & the tech support representative was saying that UOM's are different at master & org levels. Never heard of this issue earlier. I have worked with UOM's different at Master/Org levels.
    The UOM's are different at Master & Org Level and in some cases the UOM are different for different Orgs. Attribute Control for Primary/Sec UOM is at Org level. The UOM's belong to the same UOM Class. There are standard conversions defined for all these UOMs.
    Any pointers for quick resolution ?

    Pl do not post duplicates - Item Open Interface giving error for Org Assignment

  • Top N query giving error for oracle 8.0.6

    Dear All,
    We are executing this query SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM (SELECT XBLNR, WERKS, MATNR, MDV01, BACKFLQUANT, STATUS, SAPTIMESTAMP, PITSTIMESTAMP, PMTIMESTAMP, BATCH FROM PMBPITS.PITS_UNITY WHERE STATUS = '01' ORDER BY PMTIMESTAMP) WHERE ROWNUM < 20
    on oracle 8.0.6 but this is giving the following error
    ora - 00907 missing right parenthesis error
    1. Is it that in the inner select we cannot use order by and where clause together.
    2. We also found that if we remove order by from inner select then the query is not giving error
    pls help . points will be awarded

    Hi,
    what ever the Aman said is correct. You check this is supported in 8.1.5, SQL allows you to embed the ORDER BY clause in a subquery and place the ROWNUM condition in the top-level query;
    'Top-N query' is a ORACLE 8i feature which is supported in SQL. However,
    Bug:855720 states the following:
    "PL/SQL does not support top-N queries (ORDER BY in SUBSELECT/SUBQUERY
    or VIEW. Since this feature is available in SQL, but not in PL/SQL,
    it has been logged as a Bug that will be fixed in 8.1.6."
    - Pavan Kumar N

  • Giving error while creating a sales contact for the previous year (2008)

    Hi Friends,
    We are currently with SP12. When we try to create a sales contract for the previous year it is giving error like "Schedule line is for the item 100 cannot be after the order's latest delivery date".
    i tried debugging and found that that there is a rule created for this (in SP12). I commented the rule and tried to create a contract but, again got an error "Error while saving". This error I can't catch while debugging.
    I even didn't find where the schedule line date and header cancel dates are set so that I can change the dates manually.
    If any one has any idea, kindly help me.
    Best regards,
    Swarna Seeta

    Hi Wolfhard,
    Thanks for the reply.
    You are right and I have uncommented the line which assigns true to the return value and the contract got saved now.
    Thank you so much.
    I just want to know whether commeting this rule effects any of the functionalities of the sales contract.
    Best regards,
    Swarna Seeta

  • FM SSF_CLOSE failing and giving error message while printing a smartform

    Hi,
    for language spanish the smartform is not getting printed for output type SG11 but for english it is getting printed? What could be the reason? I debugged and found that SSF_CLOSE is failing and giving error message.
    Thanks and regards,
    AP.

    Hi Aparajita,
    for changing from one languages to another translations in SE63 is to be done, either search on SCN for using SE63 , or atleast see these wiki help .
    Transaction SE63 - Translation Tools for Translators (BC-DOC-TTL) - SAP Library
    Transaction SE63 (SAP Library - Translation Tools for Translators (BC-DOC-TTL))

  • Task Manager Not loading Properly. Giving Error No more threads can be created in the System.NAPStatus UI and Some other Task related Errors

    I have a problem with the Task Scheduler. It is not opening properly it is giving Error Message box at this time i am unable to post. The Tasks Scheduler is starts with a error alert "No more threads can be created in the System.NAPStatus UI".
     I am unable to view the history of the tasks schecduled.It is giving message as 
    "The user account does not have permission to Access the Task History."
    How to fix it. It is frustrating as can't able to track my Tasks and Create new Tasks. Any Suggestions helpful.
    Thanks in Advance.
    RehaanKhan. M

    Hi,
    Thanks for your post.
    Please check event viewer if there are some error logs?
    Meanwhile, there is a similar thread has been discussed:
    Receiving error about "no more threads"
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/9a9e22e4-d947-4d19-b06c-aaadda624dbc/receiving-error-about-no-more-threads?forum=winservergen
    Regards.
    Vivian Wang

  • WebdynproJava Components giving error while migrating from NWDS SP03 toSP09

    Hi,
    The original DC's were developed in lower NWDS patch level, currently i have upgraded the patch level of NWDS to 09 and importing the Wed Dynpro components from NWDI; but some of the DC's are proper but some are giving error.
    I tried Project build, DC build and Repairing the DC's but nothing worked.

    Hi Siarhei,
    Error:
    The constructor WSTypedModel(String, String, QName, String, Map, String, IWSTypedModelInfo, Map<String,QName>) is undefined
    Warnings:
    Versions of 'com.sap.dictionary.runtime' are different.
    Versions of 'com.sap.dictionary.services' are different.
    Versions of 'com.sap.tc_.wd_.rtgen' are different.
    Forgot to mention i am working on CE7.1
    Regards
    Jagan

  • Failed to load Execute Package Task error.

    Hello Experts,
    Excuse my newbie question.
    Execute Package Task: Error: The task has failed to load. The contact information for the task is "Microsoft Corporation; Microsoft SQL Server; Microsoft corporation; All Rights Reserved http://www.microsoft.com/sql/support/default.asp:1"
    We have a windows service running on our app server that deploys a package that executes other packages using execute package task. This package and rest of the packages are in the same folder at the same level under integration services
    catalog. The package fails to execute with the above said error.
    Execute package task is configured to run in 'in-process' mode. Changing delay validation to true/false in child packages didn't help.
    ironically if the package is deployed using a console application from the app server the package gets executed just fine. I checked permissions, everything seem fine.
    Is there anyway to get details of this error to understand the problem better? I am looking at reports > standard reports > all executions.
    Thanks.

    As it turns out, the 63bit ExecPackageTask.dll was not found under "C:\Program Files\Microsoft SQL Server\110\DTS\Binn". Installing "SQL Server Data Tools" installed only 32 bit version of the component under "C:\Program Files (x86)\Microsoft SQL
    Server\110\DTS\Binn".
    Is there a way to get 64bit version of this component without installing "Integration Services" (to avoid possible license issues)?
    Hi Jayakarthiks,
    To make use of the 64-bit ExecPackageTask.dll, you also need the 64-bit SSIS runtime and 64-bit DTExec utility tool. To obtain the 64-bit SSIS runtime and tools, you have to install the SQL Server Integration Services service from your SQL Server 2012 install
    media.
    Reference:
    http://msdn.microsoft.com/en-us/library/ms143731.aspx
    Regards,
    Mike Yin
    If you have any feedback on our support, please click here
    Mike Yin
    TechNet Community Support

  • Giving Error while generating the Data mart to Infocube.

    Hi Gurus,
    I need to  extract the APO infocube data in to the BW infocube. For that iam trying to generate the data mart to APO infocube .
    So, that i can use that data mart as a data source to extract that APO Infocube data in to  BW infocube.
    In that process iam trying to generate the datamart for APO Infocube . But while generating it is giving errors like below:
    Creation of InfoSource 8ZEXTFCST for target system BW 1.2 failed
    The InfoCube cannot be used as a data mart for a BW 1.2 target system.
    Failed to create InfoSource &v1& for target system BW 1.2.
    PLease suggest me what to do for this Error problem.
    Thanks alot in Advance.

    Hi,
    Point No : 1
    What is Planning Area :
    http://help.sap.com/saphelp_scm41/helpdata/en/70/1b7539d6d1c93be10000000a114084/content.htm
    Point No : 2
    Creation Steps for Planning Area :
    http://www.sap-img.com/apo/creation-of-planning-area-in-apo.htm
    Note : We will not create Planning Area.This will be done by APO team.
    Point No 3  : Afetr opening the T-Code : /n/SAPAPO/MSDP_ADMIN in APO you will be able to see all the planning areas.
    Point No 4 : Select your planning area and Goto Extras menu and Click on Generate DS
    Point No 5. System automaticall generate the DS in APO (Naming Convention start with 9) and Replicate the DS in BI Map to your cube and load the data.
    Regards
    Ram.

  • Giving error message when saving the Query

    Hello,
    I have added a new calculated key figure to the structure in a Query but when I try to save the Query it is giving error message is below.
    Error Message:
    u201CThis internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572u201D.
    Could any one please suggest me how can I over come with this problem.
    Thanks
    Prathap.

    Hi Prathap,
    There is some problem in the definition of the Query.
    Please click on the check button before saving the query, it gives where the problem exists in it.
    Hope it helps.
    Veeerendra.

Maybe you are looking for

  • Co-pa

    hi all While releasing billing document to accounting , the error is PROF.SEGMENT FOR PRIM.COST ELEMENTS NOT ADVISABLE FOR COSTING BASED COPA. need help asap thanx n regards maunami

  • How to Calculate Net weight, Gross Price, Surhcarges for  Confirmed Qty

    Hello, I have a requirement where I need to calculate the Net weight, Amount( gross price), Surhcarges etc.. for the Confirmed qty of a sales order item. In SAP standard the pricing procedure will run for the Order Qty and all the prices are related

  • Computers users and the server

    Our small business has 4 desk top computers (using Lion) that connect to a server (in house mac mini).  Each computer has 4 users that can log in and access the server.  We are being advised that the computer should only have an administrator and sin

  • Struts tags preferences

    is there a preference file for Struts tags such that the HTML code it generates can be customized? For example I have the following Struts tag code: <s:form      action="upload" method="POST" enctype="multipart/form-data">      <s:file name="upload"

  • I bought my iPad in the USA. How I can connect to a 3G network in Brazil ?

    It is a 64GB 3G ATT model. I am trying to connect with a TIM sim card.