Collection of pacman- and package-related scripts.

I have uploaded a small collection of simple package-related scripts that has been growing on my system. I have posted (variations of) most of them around the forum in response to different threads.
Some examples:
* detect incomplete packages (i.e. packages missing installed files)
* recursively list unpackages files in a given directory (e.g. can be used to find leftover packages in /usr)
* extract original version of file from package cache (e.g. to see what a configuration file was before you butchered it)
* clean custom package cache while keeping a certain number of versions for each package
etc.
You can get them here: http://xyne.archlinux.ca/scripts/pkg/. If there is enough interest I will probably package these.
There is now a package. You can find repo and AUR links here: http://xyne.archlinux.ca/projects/pkg_scripts/
Last edited by Xyne (2013-11-10 21:46:46)

Allan wrote:
Xyne wrote:* detect incomplete packages (i.e. packages missing installed files)
Um - you do know about "pacman -Qk"  (or -Qqk for less noise).
Note, in the upcoming pacman-4.1 pacman will confirm file size, permissions, ownership, creation times, symlink targets.  Checksum checking needs additional libarchive support.
As I said, these are scripts that have collected over time. I don't bother to delete them whenever Pacman catches up.
But yeah, when I posted this thread, I didn't have that in mind.
Last edited by Xyne (2013-02-06 12:20:35)

Similar Messages

  • How does he know ? (pacman and package names)

    i take a package from pacman cache on box 1
    i rename it from say xorg-1.4.0.pkg.tar.gz to xorg14-1.4.0.pkg.tar.gz
    i pacman -U it on box 2
    pacman on box 2 : upgrading xorg ###############33
    how does he know its xorg and not xorg14 ? (there seem to be only the actual files of the application inside)
    how do i rename the package so that pacman really understands its xorg14 and not xorg ?

    several reasons
    i hate ignorepkgs (and the trouble they can make if some dependency escapes out of what you ignorepkg'd)
    i have multiple (varying between 5 - 9) boxes that run arch + 3 family / friends boxes with arch that i am the support guy for. when a bad or unexpected update was out (dhcpcd kde4 xorg lib/include/asm etc) it was bad for most or all of the boxes - so i want a solution for all at once
    i install from scratch a lot (i naturally have skill of breaking my system to irrecoverable state and with the recent updates of arch its even more cause i swap hard drives). i prefer to have a custom mirror on my usb flash drive
    i want to be able to give this mirror easily to others too - like that guy that made the kde 3 mirror

  • Ho to find script and the related print program for print preview of PO

    Hi All,
    We are getting some text output on the print preview of a purchase order.
    How can we determine the driver script and the corresponding print program for this.
    Can you please guide on this.
    Thanks in advance.
    Regards,
    Sanjeet

    U Can check Driver program and form related to that program table is TNAPPR
    Goto NACE t.code
    Selct Application ---> click on output types
    then u wil get one window there select proper output type and
    double click on  processing  routines u wil get form name and related driver program name also
    Plz try this....
    Edited by: Upender Verma on Feb 9, 2009 1:33 PM
    Edited by: Upender Verma on Feb 9, 2009 1:37 PM

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
    How can I do it?
    Thanks!

    you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
    Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
    The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
    In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
    Cheers, APC

  • To generate Script of  procedures/functions and packages with grants

    Hi
    is there wome way for to generate Source Code Script of the some functions, procedures and Packages in file
    I must to generate Script withall grants
    Tia

    Datapump export with Content=Metadata_only.
    Use SQLFILE option to generate the Schema DDL which
    includes
    tables,indexes,grants,stats,procedures,triggers,views
    etc...Sorry, I'm using 10g , but I don't know to use DataPump, is there other method ?
    Thanks

  • "Run Script" (F5) Flacky Behavior with CREATE PROCEDURE and PACKAGE

    When I have the following create statement in a SQL Worksheet and run the script using "Run Script" (F5), I get the "PROCEDURE bogus Compiled." message. Why does it not tell me that there was a compile error? The procedure is marked with a little red "X" in the connections pane.
    CREATE OR REPLACE PROCEDURE bogus IS
    BEGIN
      x := 1;
    END;
    /Also, when I have the following command in a SQL Worksheet and run the script using "Run Script" (F5), I get the "PROCEDURE bogus Compiled." message. The difference is that I removed the slash after the CREATE PROCEDURE command. I can go into that procedure in the database via the Connections pane, click on the compile button, and the procedure compiles with no errors. Why does it not compile in a script when missing the slash?
    CREATE OR REPLACE PROCEDURE bogus IS
    BEGIN
      NULL;
    END;I noticed the same flaky behavior with CREATE PACKAGE BODY as well. This is in version 1.0.0.14.67 on Windows XP. Has this been fixed in the latest version?
    Mike

    I found a number of earlier posts on this (going back to at least v804), but I cannot find a thread with a response from the SQL Developer team - see:
    Package compilation error
    Succesful compilation message and Compiling Invalid Objects
    Creating a stored procedure from a file does not show compilation errors
    Re: Syntax Error Feedback
    I assume that it is just a bug with SQL Developer that it does not check for compilation errors when determining the status message to display (ie "PROCEDURE bogus Compiled"). At least now we get the little red cross on the navigator to tell us it is invalid :)

  • How to copy procedures and packages from one server to another?

    Hi,
    I have 439 packages and 178 procedures located in one server called MAXWELL.
    I need to copy these objects to another server called TITAN.
    The schema names is SPCBR in both servers.
    So both servers have an instance running with this schema SPCBR.
    SPCBR in TITAN server has their tables with table data which was generated by an export/import process from MAXWELL server.
    However, procedures and packages were not copied by the export/import because I used the clause 'tables'.
    Now, what can I do in order to equalize procedures and packages in both databases? I can't risk in damaging or duplicating data in my database located in TITAN server, ok?
    Thanks,

    Another simple alternative, according to AskTom (http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:454220160386)
    ---------------- getcode.sql ----------------------------
    set feedback off
    set heading off
    set termout off
    set linesize 1000
    set trimspool on
    set verify off
    spool &1..sql
    prompt set define off
    select decode( type||'-'||to_char(line,'fm99999'),
    'PACKAGE BODY-1', '/'||chr(10),
    null) ||
    decode(line,1,'create or replace ', '' ) ||
    text text
    from user_source
    where name = upper('&&1')
    order by type, line;
    prompt /
    prompt set define on
    spool off
    set feedback on
    set heading on
    set termout on
    set linesize 100
    ------------------- eof --------------------------------
    it extracts one procedure, function or package to a file. Thats it. If you
    wanted to get all of the procedures in a schema extracted to the current working
    directory, you would run a script:
    --------------- getallcode ---------------------------
    set termout off
    set heading off
    set feedback off
    set linesize 50
    spool xtmpx.sql
    select '@getcode ' || object_name
    from user_objects
    where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
    spool off
    spool getallcode_INSTALL.sql
    select '@' || object_name
    from user_objects
    where object_type in ( 'PROCEDURE', 'FUNCTION', 'PACKAGE' )
    spool off
    set heading on
    set feedback on
    set linesize 130
    set termout on
    @xtmpx.sql
    ---------------- eof ---------------------------------
    You can see how to filter on that one by adding to the where clause if you want.
    Just run @getallcode_INSTALL to run all of the scripts...

  • Best report to check application and package deployment compliancy?

    I am looking for the best report to check application and package deployment compliancy.
    Preferably targeting a collection.
    tconners

    I'm recommending this one:
    Software Distribution - Application Monitoring folder -
    All application deployments (advanced)
    It allows you to select Collections and applications
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • Not sure if an update broke pacman and resolv.conf

    Hey guys
              Sorry about these noobish questions but I have googled and i just cant seem to find a solution.
    Couple of things.
    First, I did a "pacman -Syu" and update the system earlier today.
    Then, I tried installing a package and i saw pacman cold not connect to mirrors. I did some search on the forums and people were pointing at resolv.conf issues. So i looked there and turns out I had
    nameserver 192.168.1.1
    as the only line listed so i fixed it to google servers and also restarted for the sake of it.
    after restart,
    I noticed my resolv.conf had these lines
    # Generated by Connection Manager
    nameserver 127.0.0.1
    nameserver ::1
        How do i find what network manager i am using and what program is doing this ?
    I couldnt connect to the internet with this.
    so i went ahead and added the "8.8.8.8" server and i could connect just fine.
    Not sure what caused this my machine was just fine before the "pacman -Syu" update. How do i check what packages were updated most recently ?
    2. I just cannot seem to connect to the mirrors anymore although i am connected to the internet just fine.
    Note: I did not change any config files unless the update changed these recently.
    Here is what i see
    [ibexmonj@ssy1 ~]$ sudo pacman -Syy
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db' from mirror.rit.edu : Resolving timed out after 10519 milliseconds
    error: failed retrieving file 'core.db' from lug.mtu.edu : Resolving timed out after 10518 milliseconds
    error: failed retrieving file 'core.db' from mir.archlinux.fr : Resolving timed out after 10518 milliseconds
    error: failed retrieving file 'core.db' from archlinux.surlyjake.com : Resolving timed out after 10519 milliseconds
    error: failed retrieving file 'core.db' from mirror.bytemark.co.uk : Resolving timed out after 10519 milliseconds
    error: failed retrieving file 'core.db' from mirrors.liquidweb.com : Resolving timed out after 10520 milliseconds
    error: failed retrieving file 'core.db' from archlinux.mirrors.uk2.net : Resolving timed out after 10519 milliseconds
    error: failed retrieving file 'core.db' from archlinux.openlabto.org : Resolving timed out after 10519 milliseconds
    error: failed retrieving file 'core.db' from mirror.datacenter.by : Resolving timed out after 10521 milliseconds
    error: failed retrieving file 'core.db' from mirror.chmuri.net : Resolving timed out after 10519 milliseconds
    error: failed retrieving file 'core.db' from ftp5.gwdg.de : Resolving timed out after 10520 milliseconds
    error: failed retrieving file 'core.db' from mirror.selfnet.de : Resolving timed out after 10520 milliseconds
    error: failed retrieving file 'core.db' from mirror.yandex.ru : Resolving timed out after 10518 milliseconds
    error: failed retrieving file 'core.db' from archlinux.c3sl.ufpr.br : Resolving timed out after 10518 milliseconds
    error: failed retrieving file 'core.db' from arch.apt-get.eu : Resolving timed out after 10519 millise
    Here is my pacman.conf
    # /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
    #GPGDir = /etc/pacman.d/gnupg/
    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
    #CleanMethod = KeepInstalled
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options
    #UseSyslog
    #UseDelta
    #TotalDownload
    CheckSpace
    #VerbosePkgLists
    # By default, pacman accepts packages signed by keys that its local keyring
    # trusts (see pacman-key and its man page), as well as unsigned packages.
    #SigLevel = Optional TrustedOnly
    # NOTE: You must run `pacman-key --init` before first using pacman; the local
    # keyring can then be populated with the keys of all official Arch Linux
    # packagers with `pacman-key --populate archlinux`.
    # 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]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [core]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    [extra]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [community]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    #[multilib-testing]
    #SigLevel = PackageRequired
    #Include = /etc/pacman.d/mirrorlist
    [multilib]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #SigLevel = Optional TrustAll
    #Server = file:///home/custompkgs
    My mirrorlist agreed its old but rankmirrors is also timing out
    ## Arch Linux repository mirrorlist
    ## Sorted by mirror score from mirror status page
    ## Generated on 2013-03-01
    ## Score: 0.3, United States
    #Server = [url]http://mirror.us.leaseweb.net/archlinux/$repo/os/$arch[/url]
    ## Score: 0.5, Germany
    #Server = [url]http://mirror.de.leaseweb.net/archlinux/$repo/os/$arch[/url]
    ## Score: 0.5, Netherlands
    #Server = [url]http://mirror.nl.leaseweb.net/archlinux/$repo/os/$arch[/url]
    ## Score: 0.7, United States
    Server = [url]http://mirror.rit.edu/archlinux/$repo/os/$arch[/url]
    ## Score: 0.7, Germany
    #Server = [url]http://ftp.tuxdroid.org/archlinux/$repo/os/$arch[/url]
    ## Score: 0.7, Germany
    #Server = [url]http://archlinux.limun.org/$repo/os/$arch[/url]
    ## Score: 0.8, United States
    Server = [url]http://lug.mtu.edu/archlinux/$repo/os/$arch[/url]
    ## Score: 0.9, France
    Server = [url]http://mir.archlinux.fr/$repo/os/$arch[/url]
    ## Score: 0.9, United States
    Please help guys
    Last edited by ibexmonj (2014-02-19 06:26:16)

    I only have a ethernet connection on my desktop  and i believe the only thing i setup (its been a while ) was dhcpcd
    so i even added "nohook resolv.conf" to /etc/dhcpcd.conf and after i reboot its still been overwritten
    and here is the pacman log for the packages i was able to update just a couple of hours ago.
    before this there was an update i did on 2/12 and that went fine as well. And i remember doing a few restarts then too.
    not sure what i messed up here.
    [2014-02-18 22:28] [PACMAN] synchronizing package lists
    [2014-02-18 22:32] [PACMAN] Running 'pacman -Syyu'
    [2014-02-18 22:32] [PACMAN] synchronizing package lists
    [2014-02-18 22:40] [PACMAN] Running 'pacman -Syyu'
    [2014-02-18 22:40] [PACMAN] synchronizing package lists
    [2014-02-18 22:43] [PACMAN] Running 'pacman -Syyu'
    [2014-02-18 22:43] [PACMAN] synchronizing package lists
    [2014-02-18 22:44] [PACMAN] starting full system upgrade
    [2014-02-18 22:45] [PACMAN] removed libusbx (1.0.17-1)
    [2014-02-18 22:45] [PACMAN] upgraded imagemagick (6.8.8.4-2 -> 6.8.8.6-1)
    [2014-02-18 22:45] [ALPM] warning: directory permissions differ on /var/db/
    filesystem: 775 package: 755
    [2014-02-18 22:45] [ALPM-SCRIPTLET] Generating locales...
    [2014-02-18 22:45] [ALPM-SCRIPTLET] en_US.UTF-8... done
    [2014-02-18 22:45] [ALPM-SCRIPTLET] Generation complete.
    [2014-02-18 22:45] [PACMAN] upgraded glibc (2.19-1 -> 2.19-2)
    [2014-02-18 22:45] [PACMAN] installed libusb (1.0.18-1)
    [2014-02-18 22:45] [PACMAN] upgraded calibre (1.23.0-1 -> 1.24.0-1)
    [2014-02-18 22:45] [PACMAN] upgraded cups-filters (1.0.44-2 -> 1.0.45-1)
    [2014-02-18 22:45] [PACMAN] upgraded dbus-glib (0.100.2-1 -> 0.102-1)
    [2014-02-18 22:45] [PACMAN] upgraded file (5.16-1 -> 5.17-1)
    [2014-02-18 22:45] [PACMAN] upgraded hicolor-icon-theme (0.12-2 -> 0.13-1)
    [2014-02-18 22:45] [PACMAN] upgraded sqlite (3.8.3-1 -> 3.8.3.1-1)
    [2014-02-18 22:45] [PACMAN] upgraded firefox (27.0-1 -> 27.0.1-1)
    [2014-02-18 22:45] [PACMAN] upgraded flex (2.5.37-1 -> 2.5.38-1)
    [2014-02-18 22:45] [PACMAN] upgraded libpng (1.6.8-1 -> 1.6.9-1)
    [2014-02-18 22:45] [PACMAN] upgraded gdk-pixbuf2 (2.30.4-1 -> 2.30.5-1)
    [2014-02-18 22:45] [PACMAN] upgraded geoclue2 (1.99.4-1 -> 2.0.0-1)
    [2014-02-18 22:45] [PACMAN] upgraded perl-error (0.17021-1 -> 0.17022-1)
    [2014-02-18 22:45] [PACMAN] upgraded git (1.8.5.4-1 -> 1.9.0-1)
    [2014-02-18 22:45] [PACMAN] upgraded gnome-control-center (3.10.2-1 -> 3.10.2-2)
    [2014-02-18 22:45] [PACMAN] upgraded p11-kit (0.20.1-1 -> 0.20.2-1)
    [2014-02-18 22:45] [PACMAN] upgraded gnutls (3.2.10-1 -> 3.2.11-1)
    [2014-02-18 22:45] [PACMAN] upgraded totem-plparser (3.10.0-4 -> 3.10.1-1)
    [2014-02-18 22:45] [PACMAN] upgraded grilo (0.2.8-1 -> 0.2.9-1)
    [2014-02-18 22:45] [PACMAN] upgraded harfbuzz (0.9.24-1 -> 0.9.26-1)
    [2014-02-18 22:45] [PACMAN] upgraded harfbuzz-icu (0.9.24-1 -> 0.9.26-1)
    [2014-02-18 22:45] [PACMAN] upgraded help2man (1.43.3-1 -> 1.44.1-1)
    [2014-02-18 22:45] [PACMAN] upgraded man-pages (3.57-1 -> 3.58-1)
    [2014-02-18 22:45] [PACMAN] upgraded mpg123 (1.18.0-1 -> 1.18.1-1)
    [2014-02-18 22:45] [PACMAN] upgraded python2 (2.7.6-1 -> 2.7.6-2)
    [2014-02-18 22:45] [PACMAN] upgraded pcsclite (1.8.10-1 -> 1.8.11-1)
    [2014-02-18 22:45] [PACMAN] upgraded perl-net-ssleay (1.56-1 -> 1.58-1)
    [2014-02-18 22:45] [PACMAN] upgraded perl-io-socket-ssl (1.962-1 -> 1.967-1)
    [2014-02-18 22:45] [PACMAN] upgraded pycups (1.9.63-1 -> 1.9.66-1)
    [2014-02-18 22:45] [PACMAN] upgraded python (3.3.3-1 -> 3.3.4-1)
    [2014-02-18 22:45] [PACMAN] upgraded t1lib (5.1.2-4 -> 5.1.2-5)
    [2014-02-18 22:45] [PACMAN] upgraded udisks2 (2.1.1-3 -> 2.1.2-1)
    Last edited by ibexmonj (2014-02-19 06:26:48)

  • Re: DW8 and "browser-safe" scripts

    > the <object> tag doesn't usually cause a problem,
    I don't think, unless
    > that's what's making IE produce a "click to run
    > ActiveX" messagebox when a page with a Shockwave movie
    is loaded.
    It is.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Fred Riley" <[email protected]> wrote in
    message
    news:[email protected]...
    >>>> Murray
    *ACE*<[email protected]> 28/06/2006 12:07:27
    >>>
    > "Browser-safe", eh? ;-)
    >
    > Definitely. Are you talking shockwave or Flash? The
    former is for
    > Director
    > files, the latter is for errr Flash files.
    >
    > F: Shockwave.
    >
    > Anyhow, your two errors are -
    >
    > Line 2, syntax error.
    > Line 159, object expected.
    >
    > Fix the first by removing this line -
    >
    > <?xml version="1.0" encoding="iso-8859-1"?>
    >
    > F: Aaarrrgggh! Not that blasted line *again*. It's not
    me that puts it in
    > the page, honest, guv, it was blasted Dreamweaver MX
    2004.
    >
    > It's not needed, and furthermore, it hurts you by
    putting IE into quirks
    > mode. I'm not quite sure why it's throwing this js error
    though. <shrug>
    >
    > The second error is caused by your failure to upload the
    Scripts folder,
    > which contains the function called on line 159 -
    >
    > <script type="text/javascript">
    > AC_SW_RunContent( '
    >
    > F: Hmmm. I'd not noticed that folder appearing in my
    site. Ah well, it
    > rules out me using the 'browser-safe' scripts then, as
    I'd have to create
    > and upload a /Scripts folder for every learning object
    on my site, and
    > that's lots of them. They can't all use the same
    /Scripts as they're
    > supposed to be standalone and survive if packaged and
    moved outside the
    > site. No matter, the <object> tag doesn't usually
    cause a problem, I don't
    > think, unless that's what's making IE produce a "click
    to run ActiveX"
    > messagebox when a page with a Shockwave movie is loaded.
    >
    > Do those things and you'll see a difference.
    >
    > F: No, you're not wrong there, Murray. Maybe the script
    is "browser-safe"
    > after all. I still think I'll use the <object>
    tag, though, but look
    > closely at the W3C spec to make sure that I stay within
    standards. I'm
    > always a bit nervous about doing in Javascript what
    should be done in
    > HTML.
    >
    > Thanks anyhoo for the reply, which wasn't expected.
    >
    > Cheers
    >
    > Fred

    > the <object> tag doesn't usually cause a problem,
    I don't think, unless
    > that's what's making IE produce a "click to run
    > ActiveX" messagebox when a page with a Shockwave movie
    is loaded.
    It is.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Fred Riley" <[email protected]> wrote in
    message
    news:[email protected]...
    >>>> Murray
    *ACE*<[email protected]> 28/06/2006 12:07:27
    >>>
    > "Browser-safe", eh? ;-)
    >
    > Definitely. Are you talking shockwave or Flash? The
    former is for
    > Director
    > files, the latter is for errr Flash files.
    >
    > F: Shockwave.
    >
    > Anyhow, your two errors are -
    >
    > Line 2, syntax error.
    > Line 159, object expected.
    >
    > Fix the first by removing this line -
    >
    > <?xml version="1.0" encoding="iso-8859-1"?>
    >
    > F: Aaarrrgggh! Not that blasted line *again*. It's not
    me that puts it in
    > the page, honest, guv, it was blasted Dreamweaver MX
    2004.
    >
    > It's not needed, and furthermore, it hurts you by
    putting IE into quirks
    > mode. I'm not quite sure why it's throwing this js error
    though. <shrug>
    >
    > The second error is caused by your failure to upload the
    Scripts folder,
    > which contains the function called on line 159 -
    >
    > <script type="text/javascript">
    > AC_SW_RunContent( '
    >
    > F: Hmmm. I'd not noticed that folder appearing in my
    site. Ah well, it
    > rules out me using the 'browser-safe' scripts then, as
    I'd have to create
    > and upload a /Scripts folder for every learning object
    on my site, and
    > that's lots of them. They can't all use the same
    /Scripts as they're
    > supposed to be standalone and survive if packaged and
    moved outside the
    > site. No matter, the <object> tag doesn't usually
    cause a problem, I don't
    > think, unless that's what's making IE produce a "click
    to run ActiveX"
    > messagebox when a page with a Shockwave movie is loaded.
    >
    > Do those things and you'll see a difference.
    >
    > F: No, you're not wrong there, Murray. Maybe the script
    is "browser-safe"
    > after all. I still think I'll use the <object>
    tag, though, but look
    > closely at the W3C spec to make sure that I stay within
    standards. I'm
    > always a bit nervous about doing in Javascript what
    should be done in
    > HTML.
    >
    > Thanks anyhoo for the reply, which wasn't expected.
    >
    > Cheers
    >
    > Fred

  • OBIEE 11g write back to Essbase and run calc script feature

    Hi,
    I have a requirement to write back into Essbase Cube and run calc script from OBIEE dashboard.
    From what i have search on google, we must deploy additional Java Script into weblogic, but that is before OBIEE 11.1.1.6.
    I have 2 question:
    - Does OBIEE 11.1.1.6 already supported native write-back to Essbase and running calcscript?
    - Anyone has example of the custom java-script for write back and running calcscript?
    And another, if there are requirement like this, is it better to install Essbase Add-in on Microsoft Excel and do the what-if analysis there, then just display the report on OBIEE dashboard? (based on user-friendliness and the complexity on maintenance)
    Thanks in advance.

    Hi,
    Even I am trying to achieve the same thing as you have mentioned but think that it is not possible to achieve easily in obiee 11.1.1.6, though we do have a work around to perform a writeback in Essbase cube using JAPI as mentioned below.
    Also we can call Hyperion reports from OBIEE using Action Links and also pass parameters to the same but dont know if it runs calculation script.
    Below link could be useful for you for write back workaround.
    http://oraclebizint.wordpress.com/2009/05/25/oracle-bi-ee-10-1-3-4-1-writebacks-to-essbase-using-japi-and-custom-html-part-1/
    Let me know in case you have found out anything else related to same.
    Thanks,

  • Unicode export:Table-splitting and package splitting

    Hi SAP experts,
    I know there are lot of forums related to this topic, but I have some new questions and hence posting a new thread.
    We are in the process of doing unicode conversion in our landscape(CRM 7.0 system based on NW 7.01) and we are running on AIX 6.1 and DB2 9.5. The database size is around 1.5 TB and hence, we want to go in for optimization for export and import in order to reduce the downtime.As a part of the process, we have tried to do table-splitting and parallel export-import to reduce the downtime.
    However, we are having some doubts whether this table-splitting has actually worked in our scenario,as the export has exeucted for nearly 28 hours.
    The steps followed by us :
    1.) Doing the export preparation using SAPINST
    2.) Doing table splitting preparation, by creating a table input file having entries in the format <tablename>%<No.of splits>.Also, we have used the latest R3ta file and the dbdb6slib.o(belonging to version 7.20 even though our system is on 7.01) using SAPINST.
    3.) Starting with the export using SAPINST.
    some observations and questions:
    1.) After completion of tablesplitting preparation, there were .WHR files that were generated for each of the tables in DATA directory of export location. However, how many .WHR files should be created and on what basis are they created?
    2.) I will take an example of a table PRCD_CLUST(cluster table) in our environment, which we had split. We had 29 *.WHR files that were created for this particular table. The number of splits given for this table was 36 and the table size is around 72 GB.Also, we noticed that the first 28 .WHR files for this table, had lots of records but the last 29th .WHR file, had only 1 record. But we also noticed that, the packages/splits for the 1st 28 splits were created quite fast but the last one,29th one took a long time(serveral hours) to get completed.Also,lots of packages were generated(around 56) of size 1 GB each for this 29th split. Also, there was only one R3load which was running for this 29th split, and was generating packages one by one.
    3.) Also,Our question here is that is there any thumb rule for deciding on the number of splits for a table.Also, during the export, are there any things that need to be specified, while giving the inputs when we use table splitting,in the screen?
    4.) Also, what exactly is the difference between table-splitting and package-splitting? Are they both effective together?
    If you have any questions and or need any clarifications and further inputs, please let me know.
    It would be great, if we could get any insights on this whole procedure, as we know a lot of things are taken care by SAPINST itself in the background, but we just want to be certain that we have done the right thing and this is the way it should work.
    Regards,
    Santosh Bhat

    Hi,
    First of all please ignore my very first response ... i have accidentally posted a response to some other thread...sorry for that 
    Now coming you your questions...
    > 1.) Can package splitting and table-splitting be used together? If yes or no, what exactly is the procedure to be followed. As I observed that, the packages also have entries of the tables that we decided to split. So, does package splitting or table-splitting override the other, and only one of the two can be effective at a time?
    Package splitting and table splitting works together, because both serve a different purpose
    My way of doing is ...
    When i do package split i choose packageLimit 1000 and also split out the tables (which i selected for table split)  into seperate package (one package per table). I do it because that helps me to track those table.
    Once the above is done i follow it up with the R3ta and wheresplitter for those tables.
    Followed by manual migration monitor to do export/import , as mentioned in the previous reply above you need to ensure you sequenced you package properly ... large tables are exported first , use sections in the package list file , etc
    > 2.) If you are well versed with table splitting procedure, could you describe maybe in brief the exact procedure?
    Well i would say run R3ta (it will create multiple select queries) followed by wheresplitter (which will just split each of the select into multiple WHR files)  ...  
    Best would go thought some document on table spliting and let me know if you have specific query. Dont miss the role of hints file.
    > 3.) Also, I have mentioned about the version of R3ta and library file in my original post. Is this likely to be an issue?Also, is there a thumb rule to decide on the no.of splits for a table.
    Rule is use executable of the kernel version supported by your system version. I am not well versed with 7.01 and 7.2 support ... to give you an example i should not use 700 R3ta on 640 system , although it works.
    >1.) After completion of tablesplitting preparation, there were .WHR files that were generated for each of the tables in DATA directory of export location. However, how many .WHR files should be created and on what basis are they created?
    If you ask for 10 split .... you will get 10 splits or in some case 11 also, the reason might be the field it is using to split the table (the where clause). But not 100% sure about it.
    > 2) I will take an example of a table PRCD_CLUST(cluster table) in our environment, which we had split. We had 29 *.WHR files that were created for this particular table. The number of splits given for this table was 36 and the table size is around 72 GB.Also, we noticed that the first 28 .WHR files for this table, had lots of records but the last 29th .WHR file, had only 1 record. But we also noticed that, the packages/splits for the 1st 28 splits were created quite fast but the last one,29th one took a long time(serveral hours) to get completed.Also,lots of packages were generated(around 56) of size 1 GB each for this 29th plit. Also, there was only one R3load which was running for this 29th split, and was generating packages one by one.
    Not sure why you got 29 split when you asked for 36, one reason might be the field (key) used for split didn't have more than 28 unique records. I dont know how is PRCD_CLUST  split , you need to check the hints file for "key". One example can be suppose my table is split using company code, i have 10 company codes so even if i ask for 20 splits i will get only 10 splits (WHR's).
    Yes the 29th file will always have less records, if you open the 29th WHR you will see that it has the "greater than clause". The 1st and the last WHR file has the "less than" and "greater than" clause , kind of a safety which allows you to prepare for the split even before you have downtime has started. This 2 WHR's ensures  that no record gets missed, though you might have prepared your WHR files week before the actual migration.
    > 3) Also,Our question here is that is there any thumb rule for deciding on the number of splits for a table.Also, during the export, are there any things that need to be specified, while giving the inputs when we use table splitting,in the screen?
    Not aware any thumb rule. First iteration you might choose something like 10 for 50 GB , 20 for 100 GB. If any of the tables overshoots the window. They you can give a try by  increase or decrease the number of splits for the table. For me couple of times the total export/import  time have improved by reducing the splits of some tables (i suppose i was oversplitting those tables).
    Regards,
    Neel
    Edited by: Neelabha Banerjee on Nov 30, 2011 11:12 PM

  • Searching strings in procedures, function and packages (OWB)

    Hi all,
    I'm working on an OMB script to look for a string in procedures, function and packages in OWB. So far, I found how to do it for functions and procedures:
    string match -nocase \*text_to_find* [OMBRETRIEVE FUNCTION 'my_function' GET PROPERTIES(IMPLEMENTATION)]
    string match -nocase \*text_to_find* [OMBRETRIEVE PROCEDURE 'my_procedure' GET PROPERTIES(IMPLEMENTATION)]
    I have tried something similar for packages but it didn't work. Does someone know how to do this search in packages? Any help will be appreciated.
    Regards,
    Mauricio

    Of course, if you are looking for a match in any source - including procedures and packages not imported into OWB, then OMB+ isn't going to be a ton of help as it won't be aware of those other packages.
    In that case, you can always find those dependencies by doing a standard select owner, name, type, text from all_source where text like '%YOUR_SEARCH_CRITERIA%' query.
    and you can embed that in your OMB+ using the Java/SQL library: How to run SQL from OMB+
    Cheers,
    Mike

  • Available APIs for process and package management

    Hello All and welcome to my Hello All:
    Welcome to my inaugural post. I am a complete noob to Solaris (although I have been using Linux for 5+ years) and am in the process of trying to get a handle on what local C/C++ APIs (if any) are available for management. Specifically, I am looking to find out about process and package management.
    For process management, basically I would like to know is there some kind of interface to the the prstat application (ie. Memory and CPU utilization). Does something like this exist?
    For package management, I am looking for the ability to add, remove, and query the package �database�. Correct me if I am wrong, but the Solaris package �database� seems similar to that of a Debian system (at least from the perspective that the informational files are stored as plain text in a well-defined directory [ie /var/sadm/pkg/]).
    I have installed Solaris 10 on an x86 machine with a full installation; however, of the installed development kits (listed below) nothing jumped out at me.
    -bash-3.00# ls -1d /var/sadm/pkg/*devel
    /var/sadm/pkg/SUNWaspell-devel
    /var/sadm/pkg/SUNWevolution-devel
    /var/sadm/pkg/SUNWevolution-libs-devel
    /var/sadm/pkg/SUNWgnome-a11y-base-devel
    /var/sadm/pkg/SUNWgnome-a11y-libs-devel
    /var/sadm/pkg/SUNWgnome-a11y-reader-devel
    /var/sadm/pkg/SUNWgnome-a11y-speech-devel
    /var/sadm/pkg/SUNWgnome-audio-devel
    /var/sadm/pkg/SUNWgnome-base-libs-devel
    /var/sadm/pkg/SUNWgnome-camera-devel
    /var/sadm/pkg/SUNWgnome-common-devel
    /var/sadm/pkg/SUNWgnome-component-devel
    /var/sadm/pkg/SUNWgnome-config-devel
    /var/sadm/pkg/SUNWgnome-desktop-prefs-devel
    /var/sadm/pkg/SUNWgnome-file-mgr-devel
    /var/sadm/pkg/SUNWgnome-hex-editor-devel
    /var/sadm/pkg/SUNWgnome-img-editor-devel
    /var/sadm/pkg/SUNWgnome-libs-devel
    /var/sadm/pkg/SUNWgnome-media-devel
    /var/sadm/pkg/SUNWgnome-panel-devel
    /var/sadm/pkg/SUNWgnome-pilot-devel
    /var/sadm/pkg/SUNWgnome-print-devel
    /var/sadm/pkg/SUNWgnome-project-devel
    /var/sadm/pkg/SUNWgnome-terminal-devel
    /var/sadm/pkg/SUNWgnome-text-editor-devel
    /var/sadm/pkg/SUNWgnome-vfs-devel
    /var/sadm/pkg/SUNWgnome-wm-devel
    /var/sadm/pkg/SUNWgnutls-devel
    /var/sadm/pkg/SUNWjpg-devel
    /var/sadm/pkg/SUNWlibexif-devel
    /var/sadm/pkg/SUNWlibgcrypt-devel
    /var/sadm/pkg/SUNWlibpopt-devel
    /var/sadm/pkg/SUNWmozilla-devel
    /var/sadm/pkg/SUNWmoznspr-devel
    /var/sadm/pkg/SUNWmoznss-devel
    /var/sadm/pkg/SUNWogg-vorbis-devel
    /var/sadm/pkg/SUNWopenjade-devel
    /var/sadm/pkg/SUNWopensp-devel
    /var/sadm/pkg/SUNWpcsclite-devel
    /var/sadm/pkg/SUNWpng-devel
    /var/sadm/pkg/SUNWpostgr-devel
    /var/sadm/pkg/SUNWPython-devel
    /var/sadm/pkg/SUNWTiff-devel
    I've placed orders for Solaris Internals and Solaris Performance & Tuning (that should arrive tomorrow), but I was hoping that someone could give me a gentle push (or perhaps a swift kick) in a general direction. :)
    Thanks.

    For process management, basically I would like to
    know is there some kind of interface to the the
    prstat application (ie. Memory and CPU utilization).
    Does something like this exist?Not prstat (although you could 'truss' it and see some of what it's doing to collect the information). kstat is available with a C interface and through perl/shell. It has several CPU fields. It's certainly useful for monitoring, but read-only. I'm not sure what you're looking for in terms of "management".
    Also 'dtrace' can provide tons of dynamic information, but that's not necessarily what you're looking for.
    For package management, I am looking for the ability
    to add, remove, and query the package �database�.
    Correct me if I am wrong, but the Solaris package
    �database� seems similar to that of a Debian system
    (at least from the perspective that the
    informational files are stored as plain text in a
    well-defined directory [ie /var/sadm/pkg/]).Yes, although it's based on the SysV packaging system. I don't believe there's any API for it outside of the 'pkg*' utilities.
    Darren

  • Exp/imp procedures, functions and packages question

    Hi
    I've a 9i R2 version Oracle database. I would like to export procedures, functions and packages from a schema. How do I do that?
    Is there any script or command lines can provide?
    Thanks

    Hello user12259190.
    You can do an export of the user itself, excluding table data as inH:\>exp
    Export: Release 10.2.0.1.0 - Production on Tue Dec 22 11:22:52 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Username: db_user@db_sid
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Data Mining and Real Application Testing options
    Enter array fetch buffer size: 4096 >
    Export file: EXPDAT.DMP >
    (2)U(sers), or (3)T(ables): (2)U > 2
    Export grants (yes/no): yes > no
    Export table data (yes/no): yes > no
    Compress extents (yes/no): yes > no
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses UTF8 character set (possible charset conversion)
    Note: table data (rows) will not be exported
    Note: grants on tables/views/sequences/roles will not be exported
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user DB_USER
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user DB_USER
    About to export DB_USER's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export DB_USER's tables via Conventional Path ...
    . . exporting table  TABLE_NAMEs
    EXP-00091: Exporting questionable statistics.
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully with warnings.Unfortunately, you can't export just the objects you want to unless they are tables.
    Using import (imp) you can list the content of your packages, procedures, functions, views, etc. and perhaps that will give you what you need.
    Another choice would be to useSELECT * FROM user_source ORDER BY 2, 1, 3;to list the code.
    Hope this helps,
    Luke

Maybe you are looking for