Autor: Daniel Davila Lopez

Daniel Davila Lopez

Bloqueo En Terminales Bancarias

Al ejecutar la aplicación de la terminal bancaria e-pago puede ser bloqueado por el routeador sophos que están instalados en oficinas de crédito y filiales.

Les mostrara el siguiente error a la hora de hacer pruebas mediante la aplicación (verifique su conexión a Internet antes e continuar)

 En la aplicación caja les mostrara lo siguiente.

Se tendrá que entrar al router de forma local ingresando su ip en el explorador. para agregar una excepción.

Una vez dentro del router ingresaremos en la parte de la pestaña WEB de lado izquierdo.

En la parte superior derecha hay un botón de agregar excepción hay que entrar a ese apartado para ingresarle los datos.

Se ingresaran los siguientes datos ip y seleccionaran las reglas para la correctas configuración de la excepción son las 3 opciones que se ven del lado izquierdo.

Aplicamos los cambios y realizamos pruebas en la aplicación nuevamente ya debe de estar funcionando correctamente.

 

Terminal Services, Periodo de Gracia

 

1.- Vamos a “Ejecutar” y accedemos a “regedit.exe”.
2.- Vamos a la entrada “GracePeriod” de HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\RCM
3.- Botón derecho sobre “GracePeriod”, editar permisos, asignar todos los permisos al usuario Administrador.
4.- Eliminar la clave “GracePeriod” y reiniciar el server.

 

Oracle Cliente, Errors

Si al instalar el cliente de Oracle te aparece un error prvg-11322
que corresponde al nombre del host donde lo estas instalando y que contiene caracteres no permitidos (_)
Podemos saltarnos la parte de validaciones con el siguiente comando

--
setup.exe -ignorePrereq -J"-Doracle.install.client.validate.clientSupportedOSCheck=false"
--

 

Link de ayuda

https://dba.stackexchange.com/questions/52645/oracle-12c-installation-in-windows-7-error-ins-30131

Oracle Client, Error INS-30131 Instalación

Al instalar el cliente de 32 y/o 64Bits aparece el siguiente error

SEVERE: [FATAL] [INS-30131] Initial setup required for the execution of installer validations failed.
CAUSE: Failed to access the temporary location.
ACTION: Ensure that the current user has required permissions to access the temporary location.
*ADDITIONAL INFORMATION:*
- Framework setup check failed on all the nodes
- Cause: Cause Of Problem Not Available
- Action: User Action Not Available
Summary of the failed nodes
maddy-pc
- Version of exectask could not be retrieved from node "XXXXXX"
- Cause: Cause Of Problem Not Available
- Action: User Action Not Available

 

 

SOLUCIÓN:

 
client installs, run the installer

setup.exe -ignorePrereq -J"-Doracle.install.client.validate.clientSupportedOSCheck=false"

 

For server installs, run the installer

setup.exe -ignorePrereq -J"-Doracle.install.db.validate.supportedOSCheck=false"

 

 

SQL, Números aleatorios

Método 1 :  Generar un número aleatorio entre un rango

---- Create the variables for the random number generation
DECLARE @Random INT;
DECLARE @Upper INT;
DECLARE @Lower INT
 
---- This will create a random number between 1 and 999
SET @Lower = 1 ---- The lowest random number
SET @Upper = 999 ---- The highest random number
SELECT @Random = ROUND(((@Upper - @Lower -1) * RAND() + @Lower), 0)
SELECT @Random

 

Método 2 : Generar un número aleatorio flotante

SELECT RAND( (DATEPART(mm, GETDATE()) * 100000 )
+ (DATEPART(ss, GETDATE()) * 1000 )
+ DATEPART(ms, GETDATE()) )

 

Método 3 : Generar un número aleatorio rápido

---- random float from 0 up to 20 - [0, 20)
SELECT 20*RAND()
-- random float from 10 up to 30 - [10, 30)
SELECT 10 + (30-10)*RAND()
--random integer BETWEEN 0
AND 20 - [0, 20]
SELECT CONVERT(INT, (20+1)*RAND())
----random integer BETWEEN 10
AND 30 - [10, 30]
SELECT 10 + CONVERT(INT, (30-10+1)*RAND())

 

Método 4 : Números aleatorios (Float, Int) Tablas basadas en tiempo

DECLARE @t TABLE( randnum float )
DECLARE @cnt INT; SET @cnt = 0
WHILE @cnt <=10000
BEGIN
SET @cnt = @cnt + 1
INSERT INTO @t
SELECT RAND( (DATEPART(mm, GETDATE()) * 100000 )
+ (DATEPART(ss, GETDATE()) * 1000 )
+ DATEPART(ms, GETDATE()) )
END
SELECT randnum, COUNT(*)
FROM @t
GROUP BY randnum

 

Método 5 : Número aleatorio por fila

---- The distribution is pretty good however there are the occasional peaks.
---- If you want to change the range of values just change the 1000 to the maximum value you want.
---- Use this as the source of a report server report and chart the results to see the distribution
SELECT randomNumber, COUNT(1) countOfRandomNumber
FROM (
SELECT ABS(CAST(NEWID() AS binary(6)) %1000) + 1 randomNumber
FROM sysobjects) sample
GROUP BY randomNumber
ORDER BY randomNumber

 

Documento original:

https://blog.sqlauthority.com/2007/04/29/sql-server-random-number-generator-script-sql-query/